MARBERT Fine-tuned for Darija Intent Classification
A fine-tuned MARBERTv2 model for intent classification in Moroccan Arabic (Darija). Designed for customer service automation and contact center AI applications.
๐ Related Projects
| Resource | Link |
|---|---|
| ๐ Live API | mohammedmediani-darija-aicc-api.hf.space |
| ๐บ Interactive Demo | HuggingFace Space |
| ๐ป API Source Code | GitHub Repository |
๐ Supported Intents
The model classifies text into 9 customer service intents:
| Intent | Description |
|---|---|
consulter_solde |
Check account balance or credit |
reclamer_facture |
Bill complaint or dispute |
declarer_panne |
Report technical issue |
info_forfait |
Request plan information |
recuperer_mot_de_passe |
Password recovery |
salutations |
Greetings |
remerciements |
Thanks |
demander_agent_humain |
Request human agent |
hors_scope |
Out of scope |
๐ Quick Start
from transformers import pipeline
classifier = pipeline("text-classification", model="mediani/marbert-fine-tuned-darija-aicc")
# Test examples
texts = [
"ุจุบูุช ูุนุฑู ุดุญุงู ุจุงูู ููุง ูู ุฑุตูุฏู",
"ู
ุงููุฎุฏู
ุด ุนูุฏู ูุงูุชุฑููุช",
"ุดูุฑุง ุจุฒุงู ุนูู ุงูู
ุณุงุนุฏุฉ"
]
for text in texts:
result = classifier(text)[0]
print(f"'{text}' โ {result['label']} ({result['score']:.2%})")
Output:
'ุจุบูุช ูุนุฑู ุดุญุงู ุจุงูู ููุง ูู ุฑุตูุฏู' โ consulter_solde (99.87%)
'ู
ุงููุฎุฏู
ุด ุนูุฏู ูุงูุชุฑููุช' โ declarer_panne (99.92%)
'ุดูุฑุง ุจุฒุงู ุนูู ุงูู
ุณุงุนุฏุฉ' โ remerciements (99.45%)
๐ Model Performance
| Metric | Score |
|---|---|
| Accuracy | 92.8% |
| Precision | 93.1% |
| Recall | 92.8% |
| F1-Score | 92.9% |
Evaluated on 1,192 test samples
๐ ๏ธ Training Details
- Base Model: UBC-NLP/MARBERTv2
- Dataset: 5,960 labeled Darija sentences
- Training: Fine-tuned for text classification
- Features: Handles code-switching (Darija + French)
๐ Citation
@misc{mediani2025darija,
author = {Mohammed Mediani},
title = {MARBERT Fine-tuned for Darija Intent Classification},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/mediani/marbert-fine-tuned-darija-aicc}},
}
๐ License
Apache 2.0
- Downloads last month
- 16