Classifies Egyptian-dialect Arabic text as positive, negative, mixed or objective.
Fine-tuned from CAMeL-Lab/bert-base-arabic-camelbert-mix on the
ASTD tweets, using the official 4-class split.
Code, training notebook and full results: https://github.com/Younes695/egyptian-arabic-sentiment
| Model | Test macro-F1 | Test accuracy |
|---|---|---|
| TF-IDF + logistic regression | 0.445 | 0.618 |
| CAMeLBERT-DA, 3 seeds | 0.5374 ± 0.0088 | 0.6565 ± 0.0065 |
| CAMeLBERT-Mix, 3 seeds | 0.5424 ± 0.0078 | 0.6558 ± 0.0010 |
This checkpoint is the CAMeLBERT-Mix run chosen on validation (seed 7): test macro-F1 0.533. F1 per class: positive 0.492, negative 0.542, mixed 0.321, objective 0.779.
from transformers import pipeline
clf = pipeline("text-classification", model="abdElrahmanWaelYounes/egyptian-arabic-sentiment", top_k=None)
clf("الفيلم ده تحفة بجد")
For best results, clean the text the same way as in training (egysent.preprocess.clean_tweet in the GitHub repo).
onnx/model.onnx 438 MBmodel.safetensors 436 MBonnx/model_quantized.onnx 111 MB