mT5 Lugbara→English translator (local corpus)
Fine-tuned google/mt5-base for Lugbara → English.
It follows the model choice and training method of C. D. Akuma, An Optimized Machine
Translation Model for Low-Resource Lugbara Language, MSc Computer Science, Muni University
(October 2025): mT5 was the thesis's optimised Lugbara→English model.
It is trained on the local English–Lugbara corpus published with the thesis (Akuma1992/NLP-data-set) instead of SALT, with the same settings as its SALT-trained twin ckuma/lugbara-english-translator, so the two can be compared.
How to use
Put the target-language tag in front of the sentence and use lowercase text, as in training.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tok = AutoTokenizer.from_pretrained("ckuma/lugbara-english-translator-local")
model = AutoModelForSeq2SeqLM.from_pretrained("ckuma/lugbara-english-translator-local")
def translate(text, tag):
x = tok(tag + " " + text.lower(), return_tensors="pt")
y = model.generate(**x, num_beams=4, max_new_tokens=128)
return tok.decode(y[0], skip_special_tokens=True)
print(translate('mi ma egata azini ba odi yi eduzu azia ci ya?', '<2en>'))
print(translate("aku amboo a niri eri ovu nizaru 'adisia?", '<2en>'))
Tags: <2en> for Lugbara → English.
Results (local corpus test split, 2141 sentence pairs)
| Direction | Sentences | BLEU ↑ | TER ↓ | Word F1 ↑ | chrF ↑ | Apostrophe integrity ↑ | Thesis best BLEU* |
|---|---|---|---|---|---|---|---|
| Lugbara → English | 2141 | 12.18 | 74.34 | 0.378 | 34.76 | – | 25.41 (mT5 (tuned)) |
BLEU and TER are sacreBLEU corpus scores; word F1 is unigram precision/recall F1; apostrophe
integrity is the share of apostrophe words in the reference ('ba, a'dule …) reproduced intact.
*The thesis scores come from the thesis's own split and cleaning of its corpus, so they are a reference point rather than an exact like-for-like comparison.
Trained on SALT vs trained on the local corpus
The same model with the same settings, trained once on each corpus and tested on both test splits (BLEU / chrF; the SALT test split is the 2,328-sentence split of the thesis-sized SALT sample).
| Direction | Trained on | SALT test | Local test |
|---|---|---|---|
| Lugbara → English | SALT (ckuma/lugbara-english-translator) | 12.71 / 34.73 | 16.24 / 35.97 |
| Local corpus (this model) | 13.79 / 33.99 | 12.18 / 34.76 |
Lugbara word tokens of each test split that never occur in the training split: SALT test 3.5% (SALT train) vs 6.9% (local train); local test 3.3% (local train) vs 8.1% (SALT train). See LUGBARA_ANALYSIS.md.
Sample test translations (Lugbara → English)
| Source | Reference | Model |
|---|---|---|
| mi ma egata azini ba odi yi eduzu azia ci ya? | have you thought about recruiting a new team? | why are you pregnant? |
| aku amboo a niri eri ovu nizaru 'adisia? | he was a very prominent politician. | i have a very good match. |
| jo were azitiri ma karatasiyo. | the office has no paper. | the offices were closed. |
| a'du e'yo ni i 'ye kari uganda niri ma alea ni?? | what is happening in uganda? | what happened in uganda? |
| ngiringiri 'da ebi mu drile eli karakara | the conflict has been ongoing for years. | the riots will involve many years. |
| zoza ezuru onthefti omvele nagherita a s a ovu oni his madria | he was accused of theft by his neighbors. | he was taken to court over his duties. |
| le mi aa mi ma karatasi mutukari onzuzu ri be sa'wa dria mini mutukari onzuzu ri si. | always have a driving permit whenever you're driving | you need to have a driving permit. |
| ba aa'pi arua 'diyi e'do tujari 'ye 'bo. | residents in arua district have engaged in business activities. | residents in arua have started their business. |
Training
Data: the local English–Lugbara corpus (Akuma1992/NLP-data-set,
datasetnlp .csv, 15,525 rows). Empty / duplicate / malformed pairs removed (1,163 / 60 / 25), leaving 14,277 pairs, split 70/15/15 at random (seed 13): 9,994 train, 2,142 validation, 2,141 test. The corpus has no domain labels, so the split is random rather than stratified by domain.Preprocessing (thesis §3.2.2): lowercased, punctuation normalised, all apostrophe variants folded to
', empty / duplicate / malformed pairs removed.Model: mT5 base, sequence-to-sequence.
Hyperparameters: no new grid search: the learning rate and batch size that the SALT grid search chose for ckuma/lugbara-english-translator (lr 0.001, batch 16), optimiser adafactor, early stopping on validation loss (patience 3); 4,375 steps, 44.9 minutes on a Kaggle GPU.
Same model and settings as the SALT-trained mT5 (learning rate 1e-3, batch 16, the winner of its SALT grid search); only the training data differs.
See LUGBARA_ANALYSIS.md for the Lugbara language analysis of the training data.
Limits
- Trained on 9,994 sentence pairs from one corpus; text from other domains may be translated less well (see the SALT cross-test above).
- Lowercase only. Tone is not written in Lugbara, so tone-only differences are lost.
- Automatic scores use one reference per sentence; Lugbara speakers should review output before use.
Credits
- Thesis and method: Charity Driciru Akuma, Muni University (2025).
- Data: Charity Driciru Akuma, local English–Lugbara corpus (GitHub). Its repository states no licence; ask the author before reusing the data.
- Cross-test data: Sunbird AI, SALT (CC BY-SA 4.0).
- Base model:
google/mt5-base. - Earlier work: mmuniversity/rutooro-multilingual-translator (Mountains of the Moon University).