SentenceTransformer based on sentence-transformers/LaBSE
This is a
sentence-transformers
model finetuned from
sentence-transformers/LaBSE
on the Omartificial-Intelligence-Space/arabic-n_li-triplet dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("Omartificial-Intelligence-Space/Arabic-labse")
# Run inference
sentences = [
'يجلس شاب ذو شعر أشقر على الحائط يقرأ جريدة بينما تمر امرأة وفتاة شابة.',
'ذكر شاب ينظر إلى جريدة بينما تمر إمرأتان بجانبه',
'الشاب نائم بينما الأم تقود ابنتها إلى الحديقة',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
MatryoshkaLoss
@misc{kusupati2024matryoshka,
title={Matryoshka Representation Learning},
author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
year={2024},
eprint={2205.13147},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
MultipleNegativesRankingLoss
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Acknowledgments
The author would like to thank Prince Sultan University for their invaluable support in this project. Their contributions and resources have been instrumental in the development and fine-tuning of these models.
## Citation
If you use the Arabic Matryoshka Embeddings Model, please cite it as follows:
@misc{nacar2024enhancingsemanticsimilarityunderstanding,
title={Enhancing Semantic Similarity Understanding in Arabic NLP with Nested Embedding Learning}, author={Omer Nacar and Anis Koubaa}, year={2024}, eprint={2407.21139}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2407.21139}, }
Runs of Omartificial-Intelligence-Space Arabic-labse-Matryoshka on huggingface.co
465
Total runs
27
24-hour runs
-98
3-day runs
-201
7-day runs
-4.5K
30-day runs
More Information About Arabic-labse-Matryoshka huggingface.co Model
Arabic-labse-Matryoshka huggingface.co is an AI model on huggingface.co that provides Arabic-labse-Matryoshka's model effect (), which can be used instantly with this Omartificial-Intelligence-Space Arabic-labse-Matryoshka model. huggingface.co supports a free trial of the Arabic-labse-Matryoshka model, and also provides paid use of the Arabic-labse-Matryoshka. Support call Arabic-labse-Matryoshka model through api, including Node.js, Python, http.
Arabic-labse-Matryoshka huggingface.co is an online trial and call api platform, which integrates Arabic-labse-Matryoshka's modeling effects, including api services, and provides a free online trial of Arabic-labse-Matryoshka, you can try Arabic-labse-Matryoshka online for free by clicking the link below.
Omartificial-Intelligence-Space Arabic-labse-Matryoshka online free url in huggingface.co:
Arabic-labse-Matryoshka is an open source model from GitHub that offers a free installation service, and any user can find Arabic-labse-Matryoshka on GitHub to install. At the same time, huggingface.co provides the effect of Arabic-labse-Matryoshka install, users can directly use Arabic-labse-Matryoshka installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Arabic-labse-Matryoshka install url in huggingface.co: