MasakhaPOS: Part-of-Speech Tagging for Typologically Diverse African languages

Cheikh M. Bamba Dione, David Ifeoluwa Adelani, Peter Nabende, Jesujoba O. Alabi, Thapelo Sindane, Happy Buzaaba, Shamsuddeen Hassan Muhammad, Chris Chinenye Emezue, Perez Ogayo, Aremu Anuoluwapo, Catherine Gitau, Derguene Mbaye, Jonathan Mukiibi, Blessing K. Sibanda, Bonaventure F. P. Dossou, Andiswa Bukula, Rooweither Mabuya, Allahsera Auguste Tapo, Edwin Munkoh-Buabeng, Victoire Memdjokam Koagne, Fatoumata Ouoba Kabore, Amelia V. Taylor, Godson Kalipe, Tebogo Macucwa, Vukosi Marivate, Tajuddeen Gwadabe, Elvis Mboning Tchiaze, Ikechukwu E. Onyenwe, Gratien Atindogbe, Tolulope Anu Adelani, Idris Akinade, Samuel Olanrewaju, Marien Nahimana, Théogène Musabeyezu, Emile Niyomutabazi, Ester Chimhenga, Kudzai Gotosa, Patrick Mizha, Apelete Agbolo, Seydou Traore, Chinedu Uchechukwu, Aliyu Yusuf, Muhammad Abdullahi, Dietrich Klakow

Abstract

MasakhaPOS introduces the largest Part-of-Speech (POS) dataset to date for 20 typologically diverse African languages, addressing the critical "data desert" in African NLP. By evaluating various multilingual models and cross-lingual transfer techniques, the research demonstrates that leveraging language family similarity and parameter-efficient fine-tuning can significantly boost tagging accuracy for low-resource languages. The study provides a high-quality, human-annotated benchmark that serves as a foundation for downstream tasks like machine translation and parsing.

Introduction

While Natural Language Processing (NLP) has made massive strides in Indo-European languages, African languages remain severely under-represented. One of the primary hurdles is the lack of basic annotated datasets. Part-of-Speech (POS) tagging—assigning grammatical categories like "noun" or "verb" to words—is a foundational step for higher-level linguistic analysis.

African languages present unique challenges for standard POS guidelines, such as those defined by Universal Dependencies (UD). Many are tonal, feature complex noun class systems (up to 20 classes in some Bantu languages), or use "clitics" (small units that attach to words, complicating word segmentation). This paper addresses the data bottleneck by providing a human-annotated benchmark for 20 languages spanning four major families.

The MasakhaPOS Dataset

The core contribution is the MasakhaPOS dataset, which covers 20 languages across four major families: Niger-Congo (17 languages, including Bantu and non-Bantu), Afro-Asiatic (Hausa), Nilo-Saharan (Luo), and English Creole (Naija). The data was primarily sourced from online news domains, providing a diverse range of contemporary topics and linguistic structures.

Table 1: Overview of the 20 African languages included in the MasakhaPOS dataset, including language family, speaker count, and data sources.

Methodology

The authors employed a multi-stage approach to build and evaluate the dataset:

  1. Human-in-the-Loop Annotation: Native speakers annotated 1,500 sentences per language. To optimize efficiency, 100 sentences were manually annotated to train an initial model, which then predicted tags for the remaining sentences for human correction.
  2. Baseline Modeling: The researchers tested traditional Conditional Random Fields (CRF) alongside several multilingual Pre-trained Language Models (PLMs). These included general models like mBERT and XLM-R, as well as "Africa-centric" models such as AfriBERTa, AfroLM, and AfroXLMR.
  3. Cross-Lingual Transfer: For zero-shot scenarios, the study compared standard fine-tuning (FT-Eval) against parameter-efficient methods like MAD-X (using adapters) and LT-SFT (Lottery Ticket Sparse Fine-Tuning).

Key Results and Insights

The evaluation revealed several critical findings for low-resource NLP:

  • State-of-the-Art Performance: The AfroXLMR-large model achieved the highest average accuracy across all 20 languages at 89.4%.
  • Africa-Centric Advantage: Africa-centric PLMs generally outperformed massively multilingual models of similar size, proving the value of pre-training on local data.
  • Language Family Transfer: The most effective source language for transfer is often a typologically related language rather than English. For non-Bantu Niger-Congo languages, transferring from Wolof was frequently more effective than transferring from English or Romanian.
  • Adapter Efficiency: In zero-shot scenarios, parameter-efficient methods like MAD-X outperformed standard fine-tuning by over 10% in accuracy, highlighting the importance of language-specific adaptation.
Table 2: Performance comparison of various models across the 20 languages. AfroXLMR-large achieves the best overall average accuracy.

Tag Difficulty and Linguistic Challenges

While models were highly accurate (>90%) at identifying nouns, verbs, and punctuation, they struggled with rarer categories like symbols (SYM) and interjections (INTJ). Typological hurdles also persisted; for instance, in chiShona, a single complex word can translate to an entire English sentence, creating challenges for cross-lingual consistency in tokenization and tagging.

Conclusion and Future Work

MasakhaPOS represents a significant step forward for African NLP, yet limitations remain. The current dataset is focused on the news domain, and performance may vary on speech transcripts or social media. Future work will involve expanding the dataset to more domains and language families (such as Khoisan) and exploring how these POS tags can improve downstream applications like machine translation and named entity recognition for African languages.

Summary updated

BibTeX
@inproceedings{dione2023masakhapos,
  author = {Cheikh M. Bamba Dione and David Ifeoluwa Adelani and Peter Nabende and Jesujoba O. Alabi and Thapelo Sindane and Happy Buzaaba and Shamsuddeen Hassan Muhammad and Chris Chinenye Emezue and Perez Ogayo and Aremu Anuoluwapo and Catherine Gitau and Derguene Mbaye and Jonathan Mukiibi and Blessing K. Sibanda and Bonaventure F. P. Dossou and Andiswa Bukula and Rooweither Mabuya and Allahsera Auguste Tapo and Edwin Munkoh-Buabeng and Victoire Memdjokam Koagne and Fatoumata Ouoba Kabore and Amelia V. Taylor and Godson Kalipe and Tebogo Macucwa and Vukosi Marivate and Tajuddeen Gwadabe and Elvis Mboning Tchiaze and Ikechukwu E. Onyenwe and Gratien Atindogbe and Tolulope Anu Adelani and Idris Akinade and Samuel Olanrewaju and Marien Nahimana and Théogène Musabeyezu and Emile Niyomutabazi and Ester Chimhenga and Kudzai Gotosa and Patrick Mizha and Apelete Agbolo and Seydou Traore and Chinedu Uchechukwu and Aliyu Yusuf and Muhammad Abdullahi and Dietrich Klakow},
  title = {{MasakhaPOS: Part-of-Speech Tagging for Typologically Diverse African languages}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.609},
}
Figure