CoolFace
Modelpublic

Omartificial-Intelligence-Space/GATE-AraBert-v0

sourceHugging Faceupdated 2y agoView on Hugging Face
1likes99downloads
Model Card

GATE-AraBert-v0

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:

bash
pip install -U sentence-transformers

Then you can load this model and run inference.

python
from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("Omartificial-Intelligence-Space/GATE-AraBert-v0")
# 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]

Evaluation

Metrics

Semantic Similarity
MetricValue
pearson_cosine0.8384
spearman_cosine0.8389
pearson_manhattan0.8248
spearman_manhattan0.8329
pearson_euclidean0.825
spearman_euclidean0.8337
pearson_dot0.8072
spearman_dot0.8098
pearson_max0.8384
spearman_max0.8389
Semantic Similarity
MetricValue
pearson_cosine0.7908
spearman_cosine0.7893
pearson_manhattan0.7923
spearman_manhattan0.7947
pearson_euclidean0.7904
spearman_euclidean0.7934
pearson_dot0.7404
spearman_dot0.7354
pearson_max0.7923
spearman_max0.7947