cnmoro commited on
Commit
d8936da
·
verified ·
1 Parent(s): b54ea9c

Update README.md

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