Skip to content

Why I am teaching machines Edo

Edo has more than two million speakers and almost no data. This is the story of building a corpus, a tokenizer and a small model, slowly and in public.

· 9 min read

The reading room where the first 4,000 sentences were typed in by hand.
On this pageWhy Edo

My grandmother speaks Edo better than any software ever will. Ask a voice assistant to understand her and it gives up after one sentence. That gap is not a technical accident. It is a data problem, and data problems can be solved slowly, one sentence at a time.

Why Edo

Edo is the language of Benin City, where my family is from. It is tonal, richly spoken, and thin on the internet. Most models treat it as noise. I wanted to see how far a small, careful dataset could go.

The data problem

There is no large public corpus. So I built one: transcribed radio, church bulletins, folktales and sentences written by volunteers, each one checked by a native speaker before it went in.

Small data, read carefully, beats big data nobody looked at.

Every sentence carries its tones as diacritics. Strip them and you lose meaning, so the tokenizer had to keep them as first-class characters.

tokenizer.py
vocab = train_bpe(corpus, size=8000,
                  keep_diacritics=True)
print(vocab.encode("Ọ̀kpá"))  # → [412, 87]
Source code on a dark screen
First training run, logged on a borrowed laptop.

What comes next

Next is speech.

ResearchLanguageEdoNLP

Written by Destiny Omoruyi

Software engineer in Lagos. Payments by day, language models by night.

Keep reading