Views
No views yet
pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("Omartificial-Intelligence-Space/GATE-AraBert-v1")
5# Run inference
6sentences = [
7 'الكلب البني مستلقي على جانبه على سجادة بيج، مع جسم أخضر في المقدمة.',
8 'لقد مات الكلب',
9 'شخص طويل القامة',
10]
11embeddings = model.encode(sentences)
12print(embeddings.shape)
13# [3, 768]
14
15# Get the similarity scores for the embeddings
16similarities = model.similarity(embeddings, embeddings)
17print(similarities.shape)
18# [3, 3]| Model | Dim | # Params. | STS17 | STS22-v2 | Average |
|---|---|---|---|---|---|
| Arabic-Triplet-Matryoshka-V2 | 768 | 135M | 85 | 64 | 75 |
| Arabert-all-nli-triplet-Matryoshka | 768 | 135M | 83 | 64 | 74 |
| AraGemma-Embedding-300m | 768 | 303M | 84 | 62 | 73 |
| GATE-AraBert-V1 | 767 | 135M | 83 | 63 | 73 |
| Marbert-all-nli-triplet-Matryoshka | 768 | 163M | 82 | 61 | 72 |
| Arabic-labse-Matryoshka | 768 | 471M | 82 | 61 | 72 |
| AraEuroBert-Small | 768 | 210M | 80 | 61 | 71 |
| E5-all-nli-triplet-Matryoshka | 384 | 278M | 80 | 60 | 70 |
| text-embedding-3-large | 3072 | - | 81 | 59 | 70 |
| Arabic-all-nli-triplet-Matryoshka | 768 | 135M | 82 | 54 | 68 |
| AraEuroBert-Mid | 1151 | 610M | 83 | 53 | 68 |
| paraphrase-multilingual-mpnet-base-v2 | 768 | 135M | 79 | 55 | 67 |
| AraEuroBert-Large | 2304 | 2.1B | 79 | 55 | 67 |
| text-embedding-ada-002 | 1536 | - | 71 | 62 | 66 |
| text-embedding-3-small | 1536 | - | 72 | 57 | 65 |
1## Citation
2
3If you use the GATE, please cite it as follows:
4
5@article{nacar2025gate,
6 title={GATE: General Arabic Text Embedding for Enhanced Semantic Textual Similarity with Matryoshka Representation Learning and Hybrid Loss Training},
7 author={Nacar, Omer and Koubaa, Anis and Sibaee, Serry and Al-Habashi, Yasser and Ammar, Adel and Boulila, Wadii},
8 journal={arXiv preprint arXiv:2505.24581},
9 year={2025}
10}