KenLM is a Python bindings package for the KenLM language model toolkit. It provides efficient querying of n-gram language models (ARPA format) for tasks like speech recognition, machine translation, and text generation. The current version is 0.3.0, with irregular release cadence.
pip install kenlmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Load an ARPA format language model and score a sentence.
Always use `import kenlm; model = kenlm.Model('path')`.Use `list(model.full_scores(...))` to access individual n-gram scores.
Install Cython and build from source on arm64/aarch64: `pip install cython; pip install kenlm --no-binary kenlm`.
No resource links recorded.