Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
dense
Generated from Trainer
dataset_size:801
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use roma-tahir/multilingual-e5-islamic-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use roma-tahir/multilingual-e5-islamic-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("roma-tahir/multilingual-e5-islamic-v1") sentences = [ "ماذا يكون حال الظالم يوم القيامة؟", "Narrated `Aisha:When the Verses of Surat-al-Baqara regarding usury (i.e. Riba) were revealed, Allah's Messenger (ﷺ) recited them before the people and then he prohibited the trade of alcoholic liquors", "Ibu 'Umar reported Allah's Messenger (ﷺ) as saying:Oppression is the darkness on the Day of Resurrection", "يَا رَسُولَ اللَّهِ أَيْنَ تَنْزِلُ غَدًا وَذَلِكَ فِي حَجَّتِهِ حِينَ دَنَوْنَا مِنْ مَكَّةَ . فَقَالَ \" وَهَلْ تَرَكَ لَنَا عَقِيلٌ مَنْزِلاً \" ." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!