Views
No views yet
sw)swahili_3gram_lm.arpa – ARPA format language modelswahili_3gram_lm.bin – Binary format for fast loading in decoders (recommended)kenlm library)1!pip install pyctcdecode==0.5.0
2!pip install https://github.com/kpu/kenlm/archive/master.zip
3
4import kenlm
5KENLM_REPO = "DarthGlennium/swahili-kenlm"
6KENLM_FILENAME = "swahili_3gram_lm.bin"
7
8kenlm_path = hf_hub_download(repo_id=KENLM_REPO, filename=KENLM_FILENAME)