Skip to main content
QUICK REVIEW

[Paper Review] Improving Yorùbá Diacritic Restoration

Iroro Orife, David Ifeoluwa Adelani|arXiv (Cornell University)|Mar 23, 2020
Agriculture and Rural Development ResearchAgricultural and Biological Sciences5 citations
TL;DR

This paper improves Yorùbá diacritic restoration (ADR) by expanding training data with diverse, non-biblical sources—including OCR-processed fiction, news, and conversational texts—resulting in a 59.80 BLEU score using a Transformer model with FastText embeddings, significantly outperforming prior models. The approach enhances generalization on colloquial and code-switched language, crucial for real-world NLP applications in Yorùbá.

ABSTRACT

Yorùbá is a widely spoken West African language with a writing system rich in orthographic and tonal diacritics. They provide morphological information, are crucial for lexical disambiguation, pronunciation and are vital for any computational Speech or Natural Language Processing tasks. However diacritic marks are commonly excluded from electronic texts due to limited device and application support as well as general education on proper usage. We report on recent efforts at dataset cultivation. By aggregating and improving disparate texts from the web and various personal libraries, we were able to significantly grow our clean Yorùbá dataset from a majority Bibilical text corpora with three sources to millions of tokens from over a dozen sources. We evaluate updated diacritic restoration models on a new, general purpose, public-domain Yorùbá evaluation dataset of modern journalistic news text, selected to be multi-purpose and reflecting contemporary usage. All pre-trained models, datasets and source-code have been released as an open-source project to advance efforts on Yorùbá language technology.

Motivation & Objective

  • To address the poor generalization of existing ADR models on colloquial, conversational, and code-switched Yorùbá text.
  • To reduce ambiguity in non-diacritized Yorùbá text by improving model performance across diverse linguistic domains.
  • To develop a robust, open-source ADR system capable of handling real-world electronic text with high accuracy.
  • To enhance model performance through expanded, high-quality training data beyond limited religious corpora.
  • To enable practical deployment of ADR in user-facing applications and devices for Yorùbá language technology.

Proposed method

  • Collected and curated diverse Yorùbá text from public-domain sources, including news (Global Voices), fiction (Háà Ènìyàn), proverbs, and human rights declarations.
  • Used commercial OCR software to process scanned books, incorporating English, Romanian, and Vietnamese characters to approximate the Yorùbá character set.
  • Implemented a human-in-the-loop correction pipeline, with one expert spending two weeks to correct 20,038 words of fiction.
  • Trained both soft-attention seq2seq and Transformer-based models using OpenNMT-py on AWS p3.2xlarge instances.
  • Enhanced models with FastText word embeddings to assess their impact on ADR performance.
  • Evaluated models using BLEU, perplexity, and Word Error Rate (WER) on a new, modern test set from Global Voices.

Experimental results

Research questions

  • RQ1How does expanding training data beyond religious corpora improve ADR model generalization on colloquial and conversational Yorùbá text?
  • RQ2To what extent do pre-trained FastText embeddings improve ADR performance across different model architectures?
  • RQ3How robust are ADR models to rare, digit-containing, or code-switched input words?
  • RQ4What is the performance gain of using a Transformer-based architecture over soft-attention seq2seq models on Yorùbá ADR?
  • RQ5Can a new, modern evaluation dataset based on journalistic text better reflect real-world ADR challenges than existing literary corpora?

Key findings

  • The best-performing model, a Transformer with all new training data and FastText embeddings, achieved a BLEU score of 59.80 on the Global Voices test set.
  • Adding all new data sources (excluding JW300) improved BLEU from 26.53 to 43.39, a 64.4% relative improvement.
  • The inclusion of JW300 contributed a 33% relative BLEU boost and an 11% absolute WER reduction compared to the baseline.
  • The Transformer model with full data and FastText embeddings achieved a WER of 22.42%, a 61.4% relative reduction from the baseline's 58.17%.
  • The model demonstrated graceful degradation on out-of-vocabulary or code-switched inputs, often predicting correct diacritics for subsequent words despite errors on rare tokens.
  • FastText embeddings provided a small but consistent performance boost for the Transformer, though results were mixed for soft-attention models across metrics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.