Update README.md
Browse files
README.md
CHANGED
@@ -59,7 +59,7 @@ context3 = "\"Freeing people from genocide is the reason, motive and goal of the
|
|
59 |
# Encode the two contexts into embeddings
|
60 |
embedding1 = model.encode([context1])
|
61 |
embedding2 = model.encode([context2])
|
62 |
-
embedding3 = model.encode([
|
63 |
|
64 |
# Calculate similarity
|
65 |
similarity1 = model.similarity(embedding1, embedding2)
|
@@ -68,7 +68,7 @@ similarity3 = model.similarity(embedding2, embedding3)
|
|
68 |
|
69 |
# Print the similarity score
|
70 |
print(f"Cosine similarities between the contexts: {similarity1}, {similarity2}, {similarity3}")
|
71 |
-
# Cosine similarities between the contexts: tensor([[0.4131]]), tensor([[0.
|
72 |
```
|
73 |
|
74 |
## Citation
|
|
|
59 |
# Encode the two contexts into embeddings
|
60 |
embedding1 = model.encode([context1])
|
61 |
embedding2 = model.encode([context2])
|
62 |
+
embedding3 = model.encode([context3])
|
63 |
|
64 |
# Calculate similarity
|
65 |
similarity1 = model.similarity(embedding1, embedding2)
|
|
|
68 |
|
69 |
# Print the similarity score
|
70 |
print(f"Cosine similarities between the contexts: {similarity1}, {similarity2}, {similarity3}")
|
71 |
+
# Cosine similarities between the contexts: tensor([[0.4131]]), tensor([[0.3607]]), tensor([[0.8933]])
|
72 |
```
|
73 |
|
74 |
## Citation
|