Downloads · 30 days
10
21% of all-time downloads
Chaima-KHENAFIF/algerian-darija-script-detector
algerian-darija-script-detector is a text classification model from Chaima-KHENAFIF. Use it when you need a label for a piece of text. The card lists the license as mit.
A fine-tuned xlm-roberta-base model that classifies text into three categories:
Downloads · 30 days
10
21% of all-time downloads
All-time downloads
48
Public
Parameters
278M
1.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
A fine-tuned xlm-roberta-base model that classifies text into three categories:
wach rak)واش راك)Built to handle the heavy code-switching and script-mixing common in Algerian social media, messaging, and speech transcripts.
from transformers import pipeline
classifier = pipeline("text-classification", model="Chaima-KHENAFIF/algerian-darija-script-detector")
classifier("wach rak mlih?")
Fine-tuned on a custom-labeled dataset of Algerian Darija and non-Darija text across the three classes above.
| Metric | Score |
|---|---|
| Accuracy | 99.7% |
| F1 (macro) | 99.7% |
| Precision (macro) | 99.8% |
| Recall (macro) | 99.6% |