Commit History

--- language: - ar - en - fr license: mit base_model: xlm-roberta-base tags: - text-classification - darija - algerian-arabic - code-switching - nlp metrics: - accuracy - f1 --- # Algerian Darija Script Detector A fine-tuned `xlm-roberta-base` model that classifies text into three categories: - **Darija (Latin script)** — Algerian Arabic written with Latin letters (e.g. `wach rak`) - **Darija (Arabic script)** — Algerian Arabic written with Arabic letters (e.g. `واش راك`) - **Not Darija** — any other language (French, English, Modern Standard Arabic, etc.) Built to handle the heavy code-switching and script-mixing common in Algerian social media, messaging, and speech transcripts. ## Usage ```python from transformers import pipeline classifier = pipeline("text-classification", model="Chaima-KHENAFIF/algerian-darija-script-detector") classifier("wach rak mlih?") ``` ## Training Fine-tuned on a custom-labeled dataset of Algerian Darija and non-Darija text across the three classes above. ## Results | Metric | Score | |---|---| | Accuracy | 99.7% | | F1 (macro) | 99.7% | | Precision (macro) | 99.8% | | Recall (macro) | 99.6% | ## Links - Full code, training pipeline, and dataset sample: [GitHub repo](https://github.com/chaima-Khenafif03/darija-script-detector)
e08df92
verified

Chaima-KHENAFIF commited on

--- language: - ar - en - fr license: mit base_model: xlm-roberta-base tags: - text-classification - darija - algerian-arabic - code-switching - nlp metrics: - accuracy - f1 --- # Algerian Darija Script Detector A fine-tuned `xlm-roberta-base` model that classifies text into three categories: - **Darija (Latin script)** — Algerian Arabic written with Latin letters (e.g. `wach rak`) - **Darija (Arabic script)** — Algerian Arabic written with Arabic letters (e.g. `واش راك`) - **Not Darija** — any other language (French, English, Modern Standard Arabic, etc.) Built to handle the heavy code-switching and script-mixing common in Algerian social media, messaging, and speech transcripts. ## Usage ```python from transformers import pipeline classifier = pipeline("text-classification", model="Chaima-KHENAFIF/algerian-darija-script-detector") classifier("wach rak mlih?") ``` ## Training Fine-tuned on a custom-labeled dataset of Algerian Darija and non-Darija text across the three classes above. ## Results | Metric | Score | |---|---| | Accuracy | 99.7% | | F1 (macro) | 99.7% | | Precision (macro) | 99.8% | | Recall (macro) | 99.6% | ## Links - Full code, training pipeline, and dataset sample: [GitHub repo](https://github.com/chaima-Khenafif03/darija-script-detector)
4676e3c
verified

Chaima-KHENAFIF commited on

Upload folder using huggingface_hub
54b6b37
verified

Chaima-KHENAFIF commited on