Abdelrahman-Rezk/Arabic_Dialect_Identification
Viewer โข Updated โข 458k โข 167 โข 12
Fine-tuned MARBERTv2 for country-level Arabic dialect classification on the QADI tweet dataset.
Test macro-F1: 0.614 (baseline TF-IDF + LinearSVC: 0.582; original QADI paper: 0.606).
Labels: OM, SD, SA, KW, QA, LB, JO, SY, IQ, MA, EG, PL, YE, BH, DZ, AE, TN, LY.
from transformers import pipeline
clf = pipeline("text-classification", model="zoro6u/marbert-arabic-dialect-id")
clf("ุดูู ุงูุงุฎุจุงุฑ ูุง ุฒูู ูููู")
# [{'label': 'SD', 'score': 0.99}]
Preprocessing used in training (apply the same before inference): remove @mentions and URLs, strip #, remove diacritics, collapse whitespace.
| OM | SD | SA | KW | QA | LB | JO | SY | IQ | MA | EG | PL | YE | BH | DZ | AE | TN | LY |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| .52 | .72 | .54 | .65 | .55 | .73 | .49 | .51 | .68 | .71 | .85 | .63 | .41 | .46 | .66 | .51 | .66 | .78 |
Strongest: EG, LY, LB, SD, MA. Weakest: the Gulf cluster and YE, where dialects are close and tweets are short.
Code and baseline: github.com/zoro6u/arabic-dialect-id
Base model
UBC-NLP/MARBERTv2