Update README.md
Browse files
README.md
CHANGED
@@ -32,6 +32,8 @@ sentences = ["Attacker takes a screenshot", "Attacker captures the screen"]
|
|
32 |
|
33 |
model = SentenceTransformer('basel/ATTACK-BERT')
|
34 |
embeddings = model.encode(sentences)
|
35 |
-
|
|
|
|
|
36 |
```
|
37 |
|
|
|
32 |
|
33 |
model = SentenceTransformer('basel/ATTACK-BERT')
|
34 |
embeddings = model.encode(sentences)
|
35 |
+
|
36 |
+
from sklearn.metrics.pairwise import cosine_similarity
|
37 |
+
print(cosine_similarity([embeddings[0]], [embeddings[1]]))
|
38 |
```
|
39 |
|