Sentence Similarity
sentence-transformers
Safetensors
bert
semantic-search
feature-extraction
cybersecurity
text-embeddings-inference
Instructions to use MrZaper/LiteModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use MrZaper/LiteModel with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("MrZaper/LiteModel") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -128,12 +128,14 @@ for res in results:
|
|
| 128 |
```
|
| 129 |
|
| 130 |
# Example Output
|
|
|
|
| 131 |
π Article 560 β similarity: 92.15%
|
| 132 |
π Article 532 β similarity: 89.34%
|
| 133 |
π Article 475 β similarity: 85.22%
|
|
|
|
| 134 |
|
| 135 |
Corresponding links:
|
| 136 |
-
```
|
| 137 |
https://csecurity.kubg.edu.ua/index.php/journal/article/view/560
|
| 138 |
https://csecurity.kubg.edu.ua/index.php/journal/article/view/532
|
| 139 |
https://csecurity.kubg.edu.ua/index.php/journal/article/view/475
|
|
|
|
| 128 |
```
|
| 129 |
|
| 130 |
# Example Output
|
| 131 |
+
```
|
| 132 |
π Article 560 β similarity: 92.15%
|
| 133 |
π Article 532 β similarity: 89.34%
|
| 134 |
π Article 475 β similarity: 85.22%
|
| 135 |
+
```
|
| 136 |
|
| 137 |
Corresponding links:
|
| 138 |
+
```
|
| 139 |
https://csecurity.kubg.edu.ua/index.php/journal/article/view/560
|
| 140 |
https://csecurity.kubg.edu.ua/index.php/journal/article/view/532
|
| 141 |
https://csecurity.kubg.edu.ua/index.php/journal/article/view/475
|