Open source
Open building blocks for Igbo AI
Igbo has tens of millions of speakers but very few open tools for building AI in it. We release the foundations we build on, so any engineer or researcher working in Igbo can start further ahead.
github.com/VeduschyShared foundations
Tokenizers and text normalisation are the same work for every Igbo project. Doing it once, carefully and in the open, saves everyone time.
Used in production
What we release is what our own models run on, with the measurements, and the limits, written down.
Better together
Issues, fixes and ideas from the community make these tools better for every Igbo speaker who uses technology.
Apache-2.0 · Python · SentencePiece
TokunizaIgbo
The Igbo tokenizer and text normaliser behind our models.
- pieces in v1 (SentencePiece unigram)
- 8,000
- pieces per Igbo word on held-out text
- 1.4–1.6
- unknown characters (byte fallback)
- 0
- text roundtrip: decode(encode(x)) = x
- Exact
Measured on held-out Igbo text: TinyStories Igbo test set, AfriBERTa evaluation lines and FLORES devtest. The dotted letters ị ọ ụ ṅ are always whole characters.
Available now
- Igbo text normaliser: strips tone marks, fixes ñ/ü/ö, repairs broken quotes and spacing. Python standard library only.
- Model card with training sources, design choices and measured results
- Check script: checksums, vocabulary size, special pieces, roundtrip and dotted vowels
- Versioning rules and a copy tool for using a fixed version in your project
Coming next
- The trained tokenizer files (tokenizer.model, tokenizer.vocab), after a rights review of the training texts
- New versions as our Igbo corpus grows; released versions never change
Quick start
git clone https://github.com/Veduschy/TokunizaIgbo
cd TokunizaIgbo/v1
python3 -c "from normalise import normalise; print(normalise('Ñ ebe ahụ, ọ̀ na- eme ihe'))"
# Ṅ ebe ahụ, ọ na-eme iheBuilding in Igbo? Start here
Practical notes from training our own Igbo models.
Normalise first
Run every text through normalise() before tokenizing or training. It targets Standard Igbo with dotted vowels only (ị ọ ụ ṅ) and no tone marks.
Pin a version
A model trained with v1 must keep using v1. Copy the version you train with into your project instead of linking to the latest one.
Pick the right granularity
Use it for models that read or write running Igbo text: generation, translation, classification. Single-word, letter-level models usually do better on raw letters.
Keep an honest test set
We never train on FLORES and keep it for evaluation only. Doing the same keeps your results comparable with ours and with published work.
Contribute or collaborate
Open an issue or pull request on GitHub, or tell us about your Igbo project. More tools will be released here as they are ready.