Downloads · 30 days
21
10% of all-time downloads
7beshoyarnest/arabic-sentiment-model
arabic-sentiment-model is a text classification model from 7beshoyarnest. Use it when you need a label for a piece of text. It is set up for transformers.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
21
10% of all-time downloads
All-time downloads
212
Public
Parameters
136M
4.9 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors543 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of aubmindlab/bert-base-arabertv02 on an ramybaly/arsentd_lev dataset. It achieves the following results on the evaluation set:
This model is a fine-tuned version of aubmindlab/bert-base-arabertv02 , adapted for Arabic Sentiment Analysis.
The model is trained to classify Arabic text into binary sentiment classes (Positive / Negative). It is suitable for analyzing opinions expressed in Modern Standard Arabic (MSA) as well as dialectal Arabic, commonly found in social media posts, product reviews, and user feedback.
The model benefits from AraBERT’s strong contextual understanding of Arabic morphology and syntax, resulting in high classification accuracy.
This model can be used for:
Arabic sentiment analysis
Social media opinion mining
Customer feedback analysis
Academic research and NLP experiments
Graduation and portfolio projects
It is designed for inference on short to medium-length Arabic texts.
Limitations
The model performs binary sentiment classification only (no neutral class).
Performance may degrade on very long documents.
Training and Evaluation Data
The model was trained and evaluated using the ramybaly/arsentd_lev dataset dataset, which consists of Arabic text labeled for sentiment polarity.
Dataset Characteristics
Language: Arabic
Labels: Positive, Negative
Text Type: Short Arabic opinions and statements
Domains: General opinionated text
The dataset was split into training, evaluation, and test sets following standard supervised learning practices.
Preprocessing
Arabic text normalization handled by AraBERT tokenizer
Tokenization using the AraBERT v02 tokenizer
Padding and truncation applied to ensure fixed input length
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.2134 | 1.0 | 588 | 0.1978 | 0.9274 | 0.9274 |
| 0.1571 | 2.0 | 1176 | 0.1482 | 0.9438 | 0.9438 |
| 0.1217 | 3.0 | 1764 | 0.1512 | 0.9454 | 0.9454 |