cnmoro commited on
Commit
4c80d0d
·
verified ·
1 Parent(s): c48aa6b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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 sentence_transformers import SentenceTransformer
18
 
19
  # Load a pretrained Sentence Transformer model
20
- model = SentenceTransformer("cnmoro/custom-model2vec-tokenlearn-medium")
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"])