Update README.md
Browse files
README.md
CHANGED
@@ -50,7 +50,7 @@ Then you can use the model like this:
|
|
50 |
from sentence_transformers import SentenceTransformer
|
51 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
52 |
|
53 |
-
model = SentenceTransformer('robbert-2022-dutch-sentence-transformers')
|
54 |
embeddings = model.encode(sentences)
|
55 |
print(embeddings)
|
56 |
```
|
@@ -76,8 +76,8 @@ def mean_pooling(model_output, attention_mask):
|
|
76 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
77 |
|
78 |
# Load model from HuggingFace Hub
|
79 |
-
tokenizer = AutoTokenizer.from_pretrained('robbert-2022-dutch-sentence-transformers}')
|
80 |
-
model = AutoModel.from_pretrained('robbert-2022-dutch-sentence-transformers')
|
81 |
|
82 |
# Tokenize sentences
|
83 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
50 |
from sentence_transformers import SentenceTransformer
|
51 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
52 |
|
53 |
+
model = SentenceTransformer('NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers')
|
54 |
embeddings = model.encode(sentences)
|
55 |
print(embeddings)
|
56 |
```
|
|
|
76 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
77 |
|
78 |
# Load model from HuggingFace Hub
|
79 |
+
tokenizer = AutoTokenizer.from_pretrained('NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers}')
|
80 |
+
model = AutoModel.from_pretrained('NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers')
|
81 |
|
82 |
# Tokenize sentences
|
83 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|