Firqa Aqila Noor A
commited on
Commit
•
2bd8795
1
Parent(s):
7205897
Update README.md
Browse files
README.md
CHANGED
@@ -27,7 +27,8 @@ Then you can use the model like this:
|
|
27 |
```python
|
28 |
from sentence_transformers import SentenceTransformer
|
29 |
sentences = ["Ibukota Perancis adalah Paris", "Menara Eifel terletak di Paris, Perancis",
|
30 |
-
"Pizza adalah makanan khas Italia",
|
|
|
31 |
|
32 |
model = SentenceTransformer('firqaaa/indo-sbert-finetuned-snli-mnli-id')
|
33 |
embeddings = model.encode(sentences)
|
@@ -52,8 +53,10 @@ def mean_pooling(model_output, attention_mask):
|
|
52 |
|
53 |
|
54 |
# Sentences we want sentence embeddings for
|
55 |
-
sentences = ["Ibukota Perancis adalah Paris",
|
56 |
-
|
|
|
|
|
57 |
|
58 |
|
59 |
# Load model from HuggingFace Hub
|
|
|
27 |
```python
|
28 |
from sentence_transformers import SentenceTransformer
|
29 |
sentences = ["Ibukota Perancis adalah Paris", "Menara Eifel terletak di Paris, Perancis",
|
30 |
+
"Pizza adalah makanan khas Italia",
|
31 |
+
"Saya kuliah di Carneige Melon University"]
|
32 |
|
33 |
model = SentenceTransformer('firqaaa/indo-sbert-finetuned-snli-mnli-id')
|
34 |
embeddings = model.encode(sentences)
|
|
|
53 |
|
54 |
|
55 |
# Sentences we want sentence embeddings for
|
56 |
+
sentences = ["Ibukota Perancis adalah Paris",
|
57 |
+
"Menara Eifel terletak di Paris, Perancis",
|
58 |
+
"Pizza adalah makanan khas Italia",
|
59 |
+
"Saya kuliah di Carneige Melon University"]
|
60 |
|
61 |
|
62 |
# Load model from HuggingFace Hub
|