basel commited on
Commit
29f7013
1 Parent(s): 0763cf4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
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
- print(embeddings)
 
 
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