Class StupidBackoffLm<W>

Type Parameters:
W -
All Implemented Interfaces:
ArrayEncodedNgramLanguageModel<W>, NgramLanguageModel<W>, Serializable

public class StupidBackoffLm<W> extends AbstractArrayEncodedNgramLanguageModel<W> implements ArrayEncodedNgramLanguageModel<W>, Serializable
Language model implementation which uses stupid backoff (Brants et al., 2007) computation. Note that stupid backoff does not properly normalize, so the scores this LM computes are not in fact probabilities. Also, unliked LMs estimated using
invalid reference
LmReaders.createKneserNeyLmFromTextFiles
, this model returns natural logarithms instead of log10.
Author:
adampauls
See Also: