LTG-ST at NADI Shared Task 1: Arabic Dialect Identification using a Stacking Classifier
Paper · 2020 · Samia Touileb
Summary
The paper tackles country-level Arabic dialect identification for the NADI 2020 shared task (sub-task 1): each tweet must be assigned to one of 21 Arab countries. The author built a deliberately simple scikit-learn system. Three base learners (a logistic regression model, a linear support vector classifier and a multinomial variant of naive Bayes) read weighted TF-IDF features over word bigrams, character n-grams and skip-grams. A second Logistic Regression then combines their cross-validated outputs. The system reaches a macro F1 of 17.71 on test, roughly level with heavier approaches the author also tried, which did no better. Much of the paper is error analysis of the corpus itself. The class distribution is heavily skewed, and most word types are shared across dialects, often because they are MSA words. Some tweets carry a dialect label even though they are written almost entirely in MSA. The author argues that these data properties, more than model choice, limit performance. Filtering out or relabelling MSA content could therefore help future systems.
Key points
- NADI corpus splits: 21,000 / 4,957 / 5,000 tweets (train/dev/test), with 270,574 / 60,700 / 64,458 tokens excluding punctuation.
- Scores: dev macro F1 17.87 with accuracy 37.26; test macro F1 17.71 with accuracy 36.22.
- Feature weights were tuned by grid search and the feature blocks joined with sklearn's Feature Union:
- word bigrams: 0.5
- character 2–5-grams bounded by words: 0.5
- character 3–5-grams: 0.5
- word and character skip-grams: 0.3
- Class imbalance and vocabulary overlap:
- Egyptian makes up over 21% of training tweets, while Djibouti, Bahrain, Sudan, Mauritania and Somalia each have about 1%.
- Only Egyptian and Iraqi have a majority of unique word types (58%); the other 19 dialects share over half their vocabulary.
- Error pattern: errors collapse onto the four largest classes (Egypt, Saudi Arabia, Algeria, Iraq), and Qatar, Bahrain, Djibouti and Kuwait get zero F1. Training on just those four classes yields F1 above 60%. Resampling, BiLSTMs, CNNs and embeddings trained on unlabeled tweets did not help.
Interesting ideas
- I1. Base classifiers are fitted on all features, but the meta-learner sees only their out-of-fold predictions, so it learns how far to trust each one without leakage.
- I2. For each class, the author measures what share of its vocabulary is unique, shared with a few other classes, or shared widely, to explain why some classes are inseparable.
- I3. To test whether imbalance is the cause, the author retrains on only the four best-represented classes and checks whether scores jump.
- I4. Rare classes show decent precision but near-zero recall, which reveals a conservative model rather than a confused one.
- I5. Labels can be noisy because "dialect" tweets are often in the standard variety; filtering or relabelling such items is proposed as a fix.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): When merging several witness parsers into silver data, an arbiter could be trained on held-out witness outputs rather than in-sample ones, to learn per-witness reliability honestly.
- I2 (learn): A similar overlap profile over lexical or construction features per genre or treebank could flag which evaluation slices are inherently hard before blaming the parser.
- I3 (learn): Restricting a task to well-resourced subsets is a cheap diagnostic control and fits our evaluation-with-negative-controls practice for separating data effects from model effects.
- I4 (answer): Reporting per-question-type precision and recall separately would show whether a student abstains too often or answers wrongly, which call for different fixes.
- I5 (tree): During UD dialect conversion and treebank mixing, sentences that are in fact standard-register could be detected and set aside so they do not blur dialect-specific parsing statistics.
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works
🧭 Topics 1Research subjects and languages the work is about.Semitic languages · 2,908 works
Cite
Cite as Samia Touileb. 2020. LTG-ST at NADI Shared Task 1: Arabic Dialect Identification using a Stacking Classifier. Proceedings of the Fifth Arabic Natural Language Processing Workshop.
@inproceedings{touileb2020ltg,
title = {{LTG-ST at NADI Shared Task 1: Arabic Dialect Identification using a Stacking Classifier}},
author = {Samia Touileb},
booktitle = {Proceedings of the Fifth Arabic Natural Language Processing Workshop},
year = {2020},
url = {https://aclanthology.org/2020.wanlp-1.34/}
}References
- Muhammad Abdul-Mageed, Chiyu Zhang, Houda Bouamor, and Nizar Habash. 2020. NADI 2020: The First Nuanced Arabic Dialect Identification Shared Task. In Proceedings of the Fifth Arabic Natural Language Processing Workshop (WANLP 2020), Barcelona, Spain. ↗
- Kathrein Abu Kwaik and Motaz K Saad. 2019. Arbdialectid at madar shared task 1: Language modelling and ensemble learning for fine grained arabic dialect identification. ArbDialectID at MADAR Shared Task 1: Language Modelling and Ensemble Learning for Fine Grained Arabic Dialect Identification, (Proceedings of the Fourth Arabic Natural Language Processing Workshop).
- Houda Bouamor, Nizar Habash, Mohammad Salameh, Wajdi Zaghouani, Owen Rambow, Dana Abdulrahim, Ossama Obeid, Salam Khalifa, Fadhl Eryani, Alexander Erdmann, et al. 2018. The madar arabic dialect corpus and lexicon. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018). find
- Houda Bouamor, Sabit Hassan, and Nizar Habash. 2019. The madar shared task on arabic fine-grained dialect identification. In Proceedings of the Fourth Arabic Natural Language Processing Workshop, pages 199–207.
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. ↗
- Youssef Fares, Zeyad El-Zanaty, Kareem Abdel-Salam, Muhammed Ezzeldin, Aliaa Mohamed, Karim El-Awaad, and Marwan Torki. 2019. Arabic dialect identification with deep learning and hybrid frequency based features. In Proceedings of the Fourth Arabic Natural Language Processing Workshop, pages 224–228.
- Nizar Habash, Fadhl Eryani, Salam Khalifa, Owen Rambow, Dana Abdulrahim, Alexander Erdmann, Reem Faraj, Wajdi Zaghouani, Houda Bouamor, Nasser Zalmout, et al. 2018. Unified guidelines and resources for arabic dialect orthography. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).
- Karima Meftouh, Karima Abidi, Salima Harrat, and Kamel Smaili. 2019. The SMarT Classifier for Ara-bic Fine-Grained Dialect Identification. In Proceedings of the Fourth Arabic Natural Language Processing Workshop (WANLP 2019), Florence, Italy. find
- F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. 2011. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830. ↗
- Ahmad Ragab, Haitham Seelawi, Mostafa Samir, Abdelrahman Mattar, Hesham Al-Bataineh, Mohammad Zaghloul, Ahmad Mustafa, Bashar Talafha, Abed Alhakim Freihat, and Hussein Al-Natsheh. 2019. Mawdoo3 ai at madar shared task: Arabic fine-grained dialect identification with ensemble learning. In Proceedings of the Fourth Arabic Natural Language Processing Workshop, pages 244–248.
- Mohammad Salameh, Houda Bouamor, and Nizar Habash. 2018. Fine-grained arabic dialect identification. In Proceedings of the 27th International Conference on Computational Linguistics, pages 1332–1344.
- Kees Versteegh. 2014. Arabic language. Edinburgh University Press. find
- Omar F Zaidan and Chris Callison-Burch. 2014. Arabic dialect identification. Computational Linguistics, 40(1):171–202. ↗
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/touileb-2020-ltg-st-nadi-shared-task/