Sentence Similarity
sentence-transformers
Safetensors
Arabic
English
bert
embeddings
feature-extraction
semantic-similarity
information-retrieval
semantic-search
cross-lingual
arabic
msa
dialect
text-embeddings-inference
Instructions to use OussamaBenSlama/e5-small-dialect2MSA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use OussamaBenSlama/e5-small-dialect2MSA with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("OussamaBenSlama/e5-small-dialect2MSA") sentences = [ "هذا شخص سعيد", "هذا كلب سعيد", "هذا شخص سعيد جدا", "اليوم هو يوم مشمس" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download modules.json from OussamaBenSlama/e5-small-dialect2MSA: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/OussamaBenSlama/e5-small-dialect2MSA/resolve/main/modules.json
- Command line
-
hf download hf://OussamaBenSlama/e5-small-dialect2MSA/modules.json
-
curl -L -o modules.json https://huggingface.co/OussamaBenSlama/e5-small-dialect2MSA/resolve/main/modules.json
429 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.base.modules.transformer.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling" | |
| }, | |
| { | |
| "idx": 2, | |
| "name": "2", | |
| "path": "2_Normalize", | |
| "type": "sentence_transformers.sentence_transformer.modules.normalize.Normalize" | |
| } | |
| ] |