GATE-AraBert-v1
This is a General Arabic Text Embedding trained using SentenceTransformers in a multi-task setup. The system trains on the AllNLI and on the STS dataset.
Model Details
Model Description
Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Omartificial-Intelligence-Space/GATE-AraBert-v1")
sentences = [
'الكلب البني مستلقي على جانبه على سجادة بيج، مع جسم أخضر في المقدمة.',
'لقد مات الكلب',
'شخص طويل القامة',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
Evaluation
Metrics
Semantic Similarity
Metric |
Value |
pearson_cosine |
0.8391 |
spearman_cosine |
0.841 |
pearson_manhattan |
0.8277 |
spearman_manhattan |
0.8361 |
pearson_euclidean |
0.8274 |
spearman_euclidean |
0.8358 |
pearson_dot |
0.8154 |
spearman_dot |
0.818 |
pearson_max |
0.8391 |
spearman_max |
0.841 |
Semantic Similarity
Metric |
Value |
pearson_cosine |
0.813 |
spearman_cosine |
0.8173 |
pearson_manhattan |
0.8114 |
spearman_manhattan |
0.8164 |
pearson_euclidean |
0.8103 |
spearman_euclidean |
0.8158 |
pearson_dot |
0.7908 |
spearman_dot |
0.7887 |
pearson_max |
0.813 |
spearman_max |
0.8173 |