Update README.md
Browse files
README.md
CHANGED
@@ -1196,7 +1196,7 @@ pip install -U sentence-transformers
|
|
1196 |
```python
|
1197 |
from sentence_transformers import SentenceTransformer
|
1198 |
|
1199 |
-
model = SentenceTransformer('
|
1200 |
|
1201 |
text_1 = 'Jestem wielkim fanem opakowań tekturowych'
|
1202 |
text_2 = 'Bardzo podobają mi się kartony'
|
@@ -1227,8 +1227,8 @@ def encode_text(text):
|
|
1227 |
cosine_similarity = lambda a, b: np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
|
1228 |
|
1229 |
|
1230 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
1231 |
-
model = AutoModel.from_pretrained('
|
1232 |
model.eval()
|
1233 |
|
1234 |
text_1 = 'Jestem wielkim fanem opakowań tekturowych'
|
|
|
1196 |
```python
|
1197 |
from sentence_transformers import SentenceTransformer
|
1198 |
|
1199 |
+
model = SentenceTransformer('OrlikB/st-polish-kartonberta-base-alpha-v1')
|
1200 |
|
1201 |
text_1 = 'Jestem wielkim fanem opakowań tekturowych'
|
1202 |
text_2 = 'Bardzo podobają mi się kartony'
|
|
|
1227 |
cosine_similarity = lambda a, b: np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
|
1228 |
|
1229 |
|
1230 |
+
tokenizer = AutoTokenizer.from_pretrained('OrlikB/st-polish-kartonberta-base-alpha-v1')
|
1231 |
+
model = AutoModel.from_pretrained('OrlikB/st-polish-kartonberta-base-alpha-v1')
|
1232 |
model.eval()
|
1233 |
|
1234 |
text_1 = 'Jestem wielkim fanem opakowań tekturowych'
|