Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:193
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use MossaabDev/quran_embed_V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use MossaabDev/quran_embed_V2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("MossaabDev/quran_embed_V2") sentences = [ "I saw someone killing a cat in the street, I felt helpless and sad", "There is no god ?worthy of worship? except You. Glory be to You! I have certainly done wrong.", "who say, when struck by a disaster, Surely to Allah we belong and to Him we will ?all? return. ", "And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror]" ] 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!