Sentence Similarity
sentence-transformers
Safetensors
Arabic
matryoshka-arabert
arabic
embeddings
matryoshka
triplet-loss
lora
custom_code
Instructions to use Abdalrahmankamel/matryoshka-arabert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Abdalrahmankamel/matryoshka-arabert with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Abdalrahmankamel/matryoshka-arabert", trust_remote_code=True) sentences = [ "الطفل يلعب في الحديقة", "ولد صغير يلهو في البستان", "السيارة تسير في الشارع", "الأطفال يمرحون في الخارج" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K