The Language Model

An Lm object contains a statistical language model. It's defined only over a Vocab object.
Currently, only trigrams, bigrams and unigrams are implemented.

Important Note: The current implementation allows to hold several language models, each defined over it's own vocabulary and each with it's own cache structure. At one time however, only one language model can be active. A number of operations from the C level are always performed on the active Lm. On the tcl level the method score will give an error if performed on an inactive Lm.


Other information on using Language Models in JANUS: