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