You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

MARBERT Fine-tuned for Darija Intent Classification

API Demo GitHub

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
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Spaces using MohammedMediani/marbert-fine-tuned-darija-aicc 2