Skip to content

Using GroNLP/bert-base-dutch-cased for embeddings #76

Open
@florismeininger

Description

@florismeininger

Your question

Good morning,

First of all thanks for building this awesome repository!

I was wondering if you could help me out with a problem I'm facing. I'm quite new to this so I might be doing it entirely wrong.

I want to create embeddings for calculating text similarity.
The embedding model has to be compatible for Dutch language, so I wanted to use this BERT model:

https://huggingface.co/GroNLP/bert-base-dutch-cased

This is my code:

$extractor = pipeline('embeddings', 'GroNLP/bert-base-dutch-cased');
$embeddings = $extractor($value, normalize: true, pooling: 'mean');

This is the error I'm getting:

"Error 0 occurred while trying to load file from https://huggingface.co/GroNLP/bert-base-dutch-cased/resolve/main/onnx/model_quantized.onnx"

Is there another way I can use this model for creating embeddings?
Thanks in advance for your time!

Context (optional)

No response

Reference (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions