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 special_tokens_map.json from Abdalrahmankamel/matryoshka-arabert: direct link, hf CLI and curl.
- Browser
- Download file 695 Bytes
-
https://huggingface.co/Abdalrahmankamel/matryoshka-arabert/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://Abdalrahmankamel/matryoshka-arabert/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/Abdalrahmankamel/matryoshka-arabert/resolve/main/special_tokens_map.json
695 Bytes
| { | |
| "cls_token": { | |
| "content": "[CLS]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "mask_token": { | |
| "content": "[MASK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "[PAD]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "sep_token": { | |
| "content": "[SEP]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "[UNK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |