Downloads · 30 days
0
ayatallah/DarijaMind-Evaluative
DarijaMind-Evaluative is a text classification model from ayatallah. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model is fine-tuned for emotion recognition in Moroccan Darija text.
Downloads · 30 days
0
Access
Public
Updated Jun 14, 2026
Repo size
856 MB
Likes
0
Public
Click a slice to open those files.
.pt856 MB · 100%
From the Hugging Face model README
This model is fine-tuned for emotion recognition in Moroccan Darija text.
The architecture is based on DarijaBERT and is designed to classify user messages into emotion categories and emotional intensity levels.
| Label | Emotion |
|---|---|
| 0 | Neutral |
| 1 | Joy |
| 2 | Sadness |
| 3 | Anger |
| 4 | Fear |
| 5 | Surprise |
| Label | Level |
|---|---|
| 0 | Low |
| 1 | Medium |
| 2 | High |
The model was trained on a Moroccan Darija emotion dataset collected from social media conversations and manually annotated.
| Split | Samples |
|---|---|
| Train | XXXX |
| Validation | XXXX |
| Test | XXXX |
| Metric | Score |
|---|---|
| Accuracy | XX.XX |
| Precision | XX.XX |
| Recall | XX.XX |
| F1-score | XX.XX |
| Metric | Score |
|---|---|
| Accuracy | XX.XX |
| Precision | XX.XX |
| Recall | XX.XX |
| F1-score | XX.XX |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "USERNAME/MODEL_NAME"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "كنحس براسي فرحان بزاف اليوم"
inputs = tokenizer(
text,
return_tensors="pt",
truncation=True,
max_length=128
)
with torch.no_grad():
outputs = model(**inputs)
prediction = torch.argmax(outputs.logits, dim=-1)
print(prediction.item())
@article{elguareh2026darijaemotion,
title={Emotion Recognition in Moroccan Darija using Transformer-Based Models},
author={El Guareh, Ayat Allah and others},
year={2026}
}
Ayat Allah El Guareh