Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Elizabeth-Mwania/part-of-speech-tagging-africa

Domain:

natural language processing

Record type:

software
Creator:
Eli
Host:
This project implements Part-of-Speech (POS) tagging system for Swahili (Kiswahili), a morphologically rich African language. By utilizing Transfer Learning from multilingual transformer models (specifically Afro-XLMR) on datasets from the Masakhane POS project. # Swahili Part-of-Speech (POS) Tagging with Transformer Architectures ## Overview This project implements Part-of-Speech (POS) tagging system for Swahili (Kiswahili), a morphologically rich African language. By utilizing Transfer Learning from multilingual transformer models (specifically Afro-XLMR) on datasets from the Masakhane POS project, enabling accurate POS tagging and token-level grammatical classification. The project supports model architectures and provides a complete pipeline from data preprocessing to model training, evaluation, and prediction. It is particularly useful for researchers and practitioners working on Natural Language Processing (NLP) tasks in African languages. ## Architecture The project utilizes a Transformer-Encoder + Token-Classification Head architecture. - Feature Engineering & Tokenization Swahili presents a unique challenge: a single word (e.g., Ninakupenda) can encode a subject, tense, object, and verb root. Subword Modeling uses SentencePiece/BPE to decompose agglutinative structures. Label Alignment implemented a masking strategy where only the initial subword of a decomposed token carries the gold-standard label, while subsequent subwords are assigned a padding index (-100) to be ignored by the CrossEntropyLoss function. - Model Selection Primary Backbone: Davlan/afro-xlmr-mini (XLM-RoBERTa optimized for African languages). Alternative Backbones: Architecture-agnostic support for BERT, RoBERTa, and DistilBERT. Rationale: XLM-R’s pre-training on 100+ languages provides a cross-lingual transfer advantage that is critical for Swahili's low-resource setting. ## Technology - Deep Learning Framework: PyTorch - Model Hub: Hugging Face Transformers - Optimization: AdamW with Linear Warmup/Decay - Evaluation: seqeval (accuracy, precision, recall, loss rate) - Telemetry: TensorBoard / Python Logging ## Methodology ### Data Pipeline The system ingests CoNLL-formatted data. The preprocessing layer transforms raw strings i …

Visit

github.com

Tasks

part of speech tagging

Languages

SwahiliSwahili, CoastalSwahili, Congo

Tags

afro-xlmr-basekiswahililow-resource-languageslow-resource-nlpmasakhanepart-of-speech-taggingswahilitransfer-learning

Similar

Elizabeth-Mwania/NollySenti_en_yo_haSetswana Part of Speech TaggingMouhamedkhlifi/Part-of-speech-taggingPart of Speech Tagging for AmharicPart-of-speech tagging of Northern SothoElizabeth-Mwania/kamba-asr-facebook-w2v-bert-2

Elizabeth-Mwania/NollySenti_en_yo_ha

NollySenti_en_yo_ha is a machine learning project dedicated to analyzing and classifying sentiment i

Setswana Part of Speech Tagging

Mouhamedkhlifi/Part-of-speech-tagging

Training xlmroberta model on 20 typologically diverse african languages to classify 14 parts of spee

Part of Speech Tagging for Amharic

International audience

Part-of-speech tagging of Northern Sotho

Elizabeth-Mwania/kamba-asr-facebook-w2v-bert-2

First ASR baseline for Kamba (Kikamba), a Kenyan Bantu language. Fine-tunes facebook/w2v-bert-2.0 on