sentence-transformers
Somali
English
Italian
semantic-search
lexical-retrieval
somali
multilingual
dictionary
terminology
Instructions to use haajidheere/ErayNet-nirig with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use haajidheere/ErayNet-nirig with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("haajidheere/ErayNet-nirig") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
File size: 1,925 Bytes
0e6e402 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | # Sample Queries for Eraynet-nirig
This file demonstrates example queries and expected outputs from the Eraynet-nirig semantic retrieval model.
## Query: medicine
```
Searching for: medicine
rank somali english italian domain similarity_score confidence_label
1 Daawo medicine medicina medicine 0.8542 high
2 ... ... ... ... ... ...
```
## Query: politics
```
Searching for: politics
rank somali english italian domain similarity_score confidence_label
1 siyaasad politics politica politics 0.8231 high
2 ... ... ... ... ... ...
```
## Query: botany
```
Searching for: botany
rank somali english italian domain similarity_score confidence_label
1 Botani botany botanica science 0.8912 high
2 ... ... ... ... ... ...
```
## Query: dhaqaale (Somali)
```
Searching for: dhaqaale
rank somali english italian domain similarity_score confidence_label
1 Dhaqaale economics economia general 0.8673 high
2 ... ... ... ... ... ...
```
## Query: legge (Italian)
```
Searching for: legge
rank somali english italian domain similarity_score confidence_label
1 qaanuun legal giuridico law 0.7456 high
2 ... ... ... ... ... ...
```
## Notes
- Similarity scores range from 0 to 1 (cosine similarity)
- Confidence labels are assigned as:
- **high**: score ≥ 0.7
- **medium**: score ≥ 0.5
- **low**: score < 0.5
- Results are sorted by similarity score in descending order
- The model returns top-5 matches by default |