Update README.md
Browse files
README.md
CHANGED
|
@@ -14,10 +14,10 @@ The output dimension is 256, and the vocabulary size is 249.999
|
|
| 14 |
The training process used a mix of English (10%) and Portuguese (90%) texts.
|
| 15 |
|
| 16 |
```python
|
| 17 |
-
from
|
| 18 |
|
| 19 |
# Load a pretrained Sentence Transformer model
|
| 20 |
-
model =
|
| 21 |
|
| 22 |
# Compute text embeddings
|
| 23 |
embeddings = model.encode(["Example sentence"])
|
|
|
|
| 14 |
The training process used a mix of English (10%) and Portuguese (90%) texts.
|
| 15 |
|
| 16 |
```python
|
| 17 |
+
from model2vec import StaticModel
|
| 18 |
|
| 19 |
# Load a pretrained Sentence Transformer model
|
| 20 |
+
model = StaticModel.from_pretrained("cnmoro/custom-model2vec-tokenlearn-medium")
|
| 21 |
|
| 22 |
# Compute text embeddings
|
| 23 |
embeddings = model.encode(["Example sentence"])
|