Skip to main content
QUICK REVIEW

[Paper Review] Attentive Sequence-to-Sequence Learning for Diacritic Restoration of Yor\`ub\'a Language Text.

Iroro Orife|arXiv (Cornell University)|Apr 3, 2018
Natural Language Processing TechniquesComputer Science21 references4 citations
TL;DR

This paper proposes an attentive sequence-to-sequence neural network approach for automatic diacritic restoration (ADR) in Yorúbá, treating undiacritized text as a source language and diacritized text as a target language in a neural machine translation framework. Using soft-attention and self-attention seq2seq models, the method achieves less than 5% diacritization error rate on a 1M-word evaluation dataset, with open-sourced models and data to advance Yorúabá NLP.

ABSTRACT

Yor\`ub\'a is a widely spoken West African language with a writing system rich in tonal and orthographic diacritics. With very few exceptions, diacritics are omitted from electronic texts, due to limited device and application support. Diacritics provide morphological information, are crucial for lexical disambiguation, pronunciation and are vital for any Yor\`ub\'a text-to-speech (TTS), automatic speech recognition (ASR) and natural language processing (NLP) tasks. Reframing Automatic Diacritic Restoration (ADR) as a machine translation task, we experiment with two different attentive Sequence-to-Sequence neural models to process undiacritized text. On our evaluation dataset, this approach produces diacritization error rates of less than 5%. We have released pre-trained models, datasets and source-code as an open-source project to advance efforts on Yor\`ub\'a language technology.

Motivation & Objective

  • To address the critical challenge of diacritic omission in electronic Yorúabá text, which hinders pronunciation, lexical disambiguation, and NLP tasks.
  • To reframe automatic diacritic restoration (ADR) as a neural machine translation problem using sequence-to-sequence models.
  • To develop and evaluate attentive neural architectures—soft-attention and self-attention seq2seq models—on a large-scale, high-ambiguity Yorúabá corpus.
  • To release pre-trained models, datasets, and source code as open-source to accelerate Yorúabá language technology development.

Proposed method

  • Reformulate ADR as a sequence-to-sequence learning task, mapping undiacritized Yorúabá text to its diacritized form using neural machine translation.
  • Implement two distinct attention-based seq2seq models: one with soft-attention and another with self-attention mechanisms to capture long-range dependencies.
  • Train models on a 1-million-word Yorúabá corpus with high lexical ambiguity, including tonal and orthographic diacritics.
  • Use character-level embeddings and attention weight matrices to model context-sensitive diacritic predictions.
  • Evaluate performance using diacritization error rate (DER) on a held-out test set.
  • Apply fastText word vectors to detect and correct inconsistent diacritization errors in the training data.

Experimental results

Research questions

  • RQ1Can sequence-to-sequence models with attention mechanisms effectively restore diacritics in Yorúabá text with high ambiguity?
  • RQ2How do soft-attention and self-attention seq2seq models compare in performance on Yorúabá diacritic restoration?
  • RQ3To what extent does training on a large, diverse corpus reduce diacritization error rates in low-resource Yorúabá text?
  • RQ4How do attention mechanisms capture context for discontinuous morphemes and tonal changes in Yorúabá verbs?
  • RQ5Can error analysis and word vector correction improve training data quality and model generalization?

Key findings

  • The proposed attentive seq2seq models achieve a diacritization error rate of less than 5% on the evaluation dataset, demonstrating strong performance on a high-ambiguity corpus.
  • The self-attention model slightly outperforms the soft-attention model, indicating better modeling of long-range dependencies in Yorúabá text.
  • Attention weight matrices reveal that the model effectively learns context-aware diacritic predictions, such as attending to prior words for ambiguous forms like 'si' (s`ı vs. s´ı).
  • The model successfully restores tonal diacritics in discontinuous morphemes, such as 'j`u' and 's`ı', by attending to relevant contextual cues.
  • Error analysis revealed inconsistent diacritization in the training data, which was mitigated using fastText-based nearest neighbor correction to improve training quality.
  • The integration of the model into text editors, browsers, and mobile keyboards is feasible and would significantly reduce manual input effort for Yorúabá users.

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.