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.

christianadebambo/yoruba-ner-robust

Domain:

natural language processing

Record type:

project
Creator:
chr
Host:
# Yoruba NER Robustness: Mixed Training for Missing Diacritics and Code-switch ## Overview Yorùbá text often omits tone marks and includes in‑line English (code‑switching), which can reduce model performance in downstream NLP tasks. This project quantifies those effects for **Named Entity Recognition (NER)** and shows that a **simple 50–50 mixed training** setup, combining original and de‑diacritised text, restores robustness with minimal cost. --- ## Installation Clone the repository: ```bash git clone github.com cd yoruba-ner-robust ``` Create a virtual environment and install dependencies: ```bash python -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` --- ## Usage Open the notebook: ```bash jupyter notebook yoruba_ner_robust.ipynb ``` The notebook runs end-to-end: - Loads the **MasakhaNER 2.0 Yorùbá** dataset from Hugging Face - Creates extra evaluation splits: - **No diacritics** (removes tone marks) - **Code-switch** (inserts English filler words) - Tokenises text and aligns BIO tags using `xlm-roberta-base` - Trains three model setups: 1. **Full fine-tune** of `xlm-roberta-base` 2. **LoRA fine-tune** (parameter-efficient version) 3. **Mixed training** (original + no-diacritics data) - Evaluates all models across clean, no-diacritics, and code-switch test sets - Saves metrics and CSV outputs under `/kaggle/working/...` - Generates comparison plots for per-entity F1 scores > **Note:** The notebook paths are set up for Kaggle. > Adjust any file or output paths as needed if running locally. ## Example Results | Model | Clean F1 | No‑Diacritics F1 | Code‑switch F1 | |----------------|-----------|------------------|----------------| | XLM‑R Full | 0.832 | 0.584 | 0.834 | | XLM‑R LoRA | 0.828 | 0.578 | 0.829 | | XLM‑R Mixed | 0.854 | 0.842 | 0.857 |

Visit

github.com

Tasks

code switchingdiacritic restorationinformation extractionnamed entity recognitiontext normalization

Languages

Yoruba

Licenses

MIT

Similar

Yoruba GV NERYoruba GV NER CorpusAnthonyogunsakin/yoruba-ner-projectPrekade/yoruba-ner-modelPrekade/ner-yoruba-modelchristianadebambo/uganda-hwc-policy

Yoruba GV NER

The Yoruba GV NER dataset is a labeled dataset for named entity recognition in Yoruba. The texts were obtained from Yoruba Global Voices News articles https://yo.globalvoices.org/ . We concentrate on four types of named entities: persons [PER], locations [LOC], org

Yoruba GV NER Corpus

The Yoruba GV NER dataset is a labeled dataset for named entity recognition in Yoruba. The texts wer

Anthonyogunsakin/yoruba-ner-project

# Yoruba Named Entity Recognition (NER) This project explores the development and evaluation of Nam

Prekade/yoruba-ner-model

Prekade/ner-yoruba-model

christianadebambo/uganda-hwc-policy

# Uncertainty-Aware Decision Support for Human-Wildlife Conflict in Uganda ## Overview We develop