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
Download tokenizer.json from Abdalrahmankamel/matryoshka-arabert: direct link, hf CLI and curl.
- Browser
- Download file 1.78 MB
-
https://huggingface.co/Abdalrahmankamel/matryoshka-arabert/resolve/main/tokenizer.json
- Command line
-
hf download hf://Abdalrahmankamel/matryoshka-arabert/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/Abdalrahmankamel/matryoshka-arabert/resolve/main/tokenizer.json
1.78 MB
File too large to display, you can check the raw version instead.