Class StupidBackoffLm<W>

  • Type Parameters:
    W -
    All Implemented Interfaces:
    ArrayEncodedNgramLanguageModel<W>, NgramLanguageModel<W>, java.io.Serializable

    public class StupidBackoffLm<W>
    extends AbstractArrayEncodedNgramLanguageModel<W>
    implements ArrayEncodedNgramLanguageModel<W>, java.io.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 LmReaders.createKneserNeyLmFromTextFiles, this model returns natural logarithms instead of log10.
    Author:
    adampauls
    See Also:
    Serialized Form