Elamur Research⌕
☰
home / papers / 2021 / Country-level Arabic Dialect Identification Using Small Datasets with Integrated Machine Learning Techniques and Deep Learning Models

Country-level Arabic Dialect Identification Using Small Datasets with Integrated Machine Learning Techniques and Deep Learning Models

Paper · 2021 · Maha J. Althobaiti

Summary

The paper tackles country-level Arabic dialect identification for the NADI 2021 shared task (subtask 1.2), where each tweet must be assigned to one of 21 countries using only a modest labelled set. The author compares classical learners (SVM, Logistic Regression, Random Forest), a stacked LR→SVM setup, a hard-voting ensemble, and two neural models (GRU, BiLSTM). Inputs include character and word n-grams, TFIDF, and features derived from Pointwise Mutual Information. PMI is used to build per-dialect word lists automatically, with MSA vocabulary filtered out, and to score each tweet against every dialect. Two ways of using the roughly 10M unlabelled tweets are also tested: co-training with three agreeing classifiers, and word2vec embeddings. The best system is an SVM with n-grams, dictionary flags and tweet-level PMI scores, reaching 18.94% macro-F1 on the test set. The stacked model has the highest precision (22.70%), and the neural models lag well behind. The work shows that cheap, interpretable lexical statistics outperform deep models when labelled data is scarce and unevenly distributed across classes.

Key points

  • Data: the NADI corpus contains 31,000 labelled tweets in 21 country dialects, split into 21,000 for training, 5,000 for development and 5,000 for test. It comes with about 10M unlabelled tweets, and six dialects have fewer than 250 training examples.
  • Dictionaries: a word is added to a dialect's list when its PMI with that dialect exceeds 1.5. Words found in the subtask 1.1 MSA corpus are excluded, and each tweet also receives 21 summed PMI values, one per dialect.
  • Results: the SVM with c2-5, w1-3, dict and PMI features scored 18.71 macro-F1 on dev and 18.94 on test. The integrated LR→SVM model scored about 18.1 F1 on test with higher accuracy (38.47), while BiLSTM and GRU with learned embeddings reached only about 13 F1 on dev.
  • Co-training: the unanimous agreement of LR, SVM and RF was used to label 300K unlabelled tweets, producing the CoTraining labelled corpus. Training on this corpus (BiLSTM 12.63 F1) performed about the same as using embeddings pre-trained on it (12.85 F1).
  • Error analysis: many errors were short tweets with no distinctive dialect words. Class imbalance also distorted PMI: a word shared by Egypt and Yemen received a high score only for Yemen, because Egypt had 4283 samples and Yemen 429.

Interesting ideas

  • I1. Class-specific lexicons are built by keeping only words whose PMI passes a threshold, then removing words that also appear in a generic reference corpus (MSA), so each list keeps only the truly marked vocabulary. This is a cheap, inspectable alternative to learned cue detectors.
  • I2. An entire input is condensed into one summed association score per class, giving a very small, readable feature vector that sits alongside sparse n-grams. Each number can be traced back to the individual words that produced it.
  • I3. In the stacking design, one model's predictions become extra features for a second model, which raised precision while costing some recall. This is a simple knob for systems where a false positive is worse than a miss.
  • I4. Automatic labelling by unanimous agreement among three different classifiers was directly compared with simply pre-training embeddings on the same text, and the two came out level. This shows that agreement-based silver data should be benchmarked against a cheap alternative.
  • I5. The error analysis shows that association statistics computed on imbalanced sources favour the smaller class for shared words. This is a general warning for any corpus-derived lexicon.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (learn): when inducing repair rules from silver data, cue words could be chosen by PMI with the error class and then filtered against a neutral corpus. This would keep each rule's trigger explainable.
  • I2 (frames): lemma-to-speech-act or lemma-to-irony PMI sums could act as transparent prior signals for prag. Each score could be justified by listing its contributing words.
  • I3 (tree): gparse's predicted heads and labels could be fed as features into the perceptron parser. The final, explainable parser could then decide when to trust the transformer.
  • I4 (learn): witness-parser silver data could be evaluated against a baseline that uses the same raw text without agreement. This would act as a negative control showing what the agreement filter actually contributes.
  • I5 (world): when compiling verb classes or value lexicons from uneven corpora, scores could be smoothed or class-balanced. This would stop sparsely covered sources from claiming shared words.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 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 Maha J. Althobaiti. 2021. Country-level Arabic Dialect Identification Using Small Datasets with Integrated Machine Learning Techniques and Deep Learning Models. Proceedings of the Sixth Arabic Natural Language Processing Workshop.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{althobaiti2021country,
  title = {{Country-level Arabic Dialect Identification Using Small Datasets with Integrated Machine Learning Techniques and Deep Learning Models}},
  author = {Maha J. Althobaiti},
  booktitle = {Proceedings of the Sixth Arabic Natural Language Processing Workshop},
  year = {2021},
  url = {https://aclanthology.org/2021.wanlp-1.30/}
}

References

20 references, 14 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Muhammad Abdul-Mageed, Hassan Alhuzali, and Mohamed Elaraby. 2018. You tweet what you speak: A city-level dataset of arabic dialects. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), pages 3653–3659.
  2. 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, pages 97–110. ↗
  3. Muhammad Abdul-Mageed, Chiyu Zhang, Abdel-Rahim Elmadany, Houda Bouamor, and Nizar Habash. 2021. NADI 2021: The Second Nuanced Arabic Dialect Identification Shared Task. In Proceedings of the Sixth Arabic Natural Language Processing Workshop (WANLP 2021). ↗
  4. Maha J Althobaiti. 2020a. Automatic Arabic Dialect Identification Systems for Written Texts: A Survey. International Journal of Computational Linguistics (IJCL), 11(3):61–89. ↗
  5. Maha J Althobaiti. 2020b. Automatic Arabic Dialect Identification Systems for Written Texts: A Survey. arXiv preprint arXiv:2009.12622. ↗
  6. Avrim Blum and Tom Mitchell. 1998. Combining labeled and unlabeled data with co-training. In Proceedings of the eleventh annual conference on Computational learning theory, pages 92–100. ↗
  7. 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.
  8. Karen Sparck Jones. 1972. A statistical interpretation of term specificity and its application in retrieval. Journal of documentation. ↗
  9. Shervin Malmasi, Marcos Zampieri, Nikola Ljubešić, Preslav Nakov, Ahmed Ali, and Jörg Tiedemann. 2016. Discriminating between similar languages and arabic dialect identification: A report on the third dsl shared task. In Proceedings of the Third Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial3), pages 1–14.
  10. Christopher D Manning, Christopher D Manning, and Hinrich Schütze. 1999. Foundations of statistical natural language processing. MIT press. find
  11. Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013a. Efficient estimation of word representations in vector space. In Proceedings of the International Conference on Learning Representations (ICLR 2013), pages 1–12. ↗
  12. Tomáš Mikolov, Édouard Grave, Piotr Bojanowski, Christian Puhrsch, and Armand Joulin. 2018. Advances in Pre-Training Distributed Word Representations. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), pages 52–55.
  13. Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013b. Distributed Representations of Words and Phrases and their Compositionality. Advances in Neural Information Processing Systems, 26:3111–3119. ↗
  14. Giovanni Molina, Fahad AlGhamdi, Mahmoud Ghoneim, Abdelati Hawwari, Nicolas Rey-Villamizar, Mona Diab, and Thamar Solorio. 2016. Overview for the Second Shared Task on Language Identification in Code-Switched Data. In Proceedings of the Second Workshop on Computational Approaches to Code Switching, pages 40–49.
  15. Jeffrey Pennington, Richard Socher, and Christopher D Manning. 2014. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 1532–1543. ↗
  16. Radim Rehurek and Petr Sojka. 2010. Software framework for topic modelling with large corpora. In In Proceedings of the LREC 2010 workshop on new challenges for NLP frameworks, pages 46–50. find
  17. Hinrich Schütze, Christopher D Manning, and Prabhakar Raghavan. 2008. Introduction to information retrieval, volume 39. Cambridge University Press Cambridge. find
  18. Zhang Yun-tao, Gong Ling, and Wang Yong-cheng. 2005. An improved TF-IDF approach for text classification. Journal of Zhejiang University-Science A, 6(1):49–55. ↗
  19. Mohamed A Zahran, Ahmed Magooda, Ashraf Y Mahgoub, Hazem Raafat, Mohsen Rashwan, and Amir Atyia. 2015. Word representations in vector space and their applications for arabic. In International Conference on Intelligent Text Processing and Computational Linguistics, pages 430–443. Springer. find
  20. Marcos Zampieri, Shervin Malmasi, Nikola Ljubešić, Preslav Nakov, Ahmed Ali, Jörg Tiedemann, Yves Scherrer, and Noëmi Aepli. 2017. Findings of the VarDial evaluation campaign 2017. In Proceedings of the fourth workshop on NLP for similar languages, varieties and dialects.

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/althobaiti-2021-country-level-arabic-dialect-identification/