Downloads · 30 days
0
DarthGlennium/swahili-kenlm
swahili-kenlm is a machine learning model from DarthGlennium. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a KenLM n-gram language model trained on a large Swahili text corpus (~11.3M sentences) from Benjamin-png/swahili-normalized-corpus. The model is designed for ASR decoding, text prediction, an…
Downloads · 30 days
0
Access
Public
Updated Aug 11, 2025
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.arpa663 MB · 58%
From the Hugging Face model README
This repository contains a KenLM n-gram language model trained on a large Swahili text corpus (~11.3M sentences) from Benjamin-png/swahili-normalized-corpus.
The model is designed for ASR decoding, text prediction, and other NLP tasks involving Swahili.
sw)swahili_3gram_lm.arpa – ARPA format language modelswahili_3gram_lm.bin – Binary format for fast loading in decoders (recommended)kenlm library)!pip install pyctcdecode==0.5.0
!pip install https://github.com/kpu/kenlm/archive/master.zip
import kenlm
KENLM_REPO = "DarthGlennium/swahili-kenlm"
KENLM_FILENAME = "swahili_3gram_lm.bin"
kenlm_path = hf_hub_download(repo_id=KENLM_REPO, filename=KENLM_FILENAME)