Speech & Language AI
Build and query an N-gram language model with KenLM
KenLM is a C++ library for estimating word N-gram language models and quickly querying sentence probabilities from saved models. An N-gram estimates the likelihood of the next word from counts of sequences of N consecutive units. KenLM is therefore not a complete conversational text generator; it is a language-model engine that an ASR decoder or statistical machine-translation system can combine with other signals to score candidate sentences. [KenLM repository](https://github.com/kpu/kenlm) · [KenLM paper](https://aclanthology.org/W11-2123/)