Add N'Ko Tesseract models v1+v2 (LFS) and model card
Browse filesFirst usable open-source N'Ko OCR models (v2: 6.26% CER). GPLv3.
Files changed (4)
- .gitattributes+2
- README.mdAdded+51
- nko-v1.traineddataAdded+3
- nko-v2.traineddataAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines333435363732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textnko-v1.traineddata filter=lfs diff=lfs merge=lfs -textnko-v2.traineddata filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051---language:- nqolicense: gpl-3.0tags:- nko- ocr- tesseract- image-to-text- nko-script- bambara- mali- low-resourcepipeline_tag: image-text-to-text---
# nko-ocr — Tesseract LSTM models for N'Ko (ߒߞߏ) OCR
Tesseract LSTM models for **N'Ko** optical character recognition — the writing system of Manding languages (Bambara, Maninka, Dioula), spoken by ~50 million people in West Africa. First usable open-source N'Ko OCR (the official Tesseract `nko.traineddata` produced empty output on N'Ko text).
By [Fousseyni Diarra](https://github.com/koussedia) — Bamako, Mali. GPLv3.
## Models
| File | CER | WER | Notes ||------|-----|-----|-------|| `nko-v2.traineddata` (recommended) | **6.26%** | **17.85%** | v1 + 4,000 targeted images (diacritics, N'Ko digits, 2 fonts) + 2,856-word dictionary wordlist, 32k iterations || `nko-v1.traineddata` | 15.84% | 34.84% | 914 pure-N'Ko images, 18k iterations |
Measured with `lstmeval` on the same 92-line held-out test set (~94% of characters correct with v2).
## Quickstart
```bash# Tesseract >= 5.0, N'Ko model files in ./ (or --tessdata-dir)tesseract page.png output.txt -l nko-v2 --tessdata-dir ./
# single text linetesseract line.png stdout -l nko-v2 --tessdata-dir ./ --psm 6```
Notes:- Input works best at **≥120 DPI** (upscale lower-resolution renders first).- N'Ko is right-to-left; the models were trained with RTL handling.- Printed text only — handwriting is **not** supported. Human review required for critical documents.
## Links
- GitHub (full project: corpus, wordlist, training notes): https://github.com/koussedia/nko-ocr- Live demo: https://huggingface.co/spaces/koussedia/nko-ocr-demo- Dataset (4,422 image/text pairs): https://huggingface.co/datasets/koussedia/nko-ocr-dataset123version https://git-lfs.github.com/spec/v1oid sha256:9daef9f64338e5e7ce158a235bd55e795b0bf69eb7c68cf7cfc99de83a563fbasize 3226937123version https://git-lfs.github.com/spec/v1oid sha256:4394b8265afafa9d83518e58dd11ff60e98092d2fe21d09586fb03ee55baaa41size 3283298.gitattributes+2
README.mdAdded+51
nko-v1.traineddataAdded+3
nko-v2.traineddataAdded+3