Class AbstractNgramLanguageModel<W>

    • Field Detail

      • lmOrder

        protected final int lmOrder
      • oovWordLogProb

        protected float oovWordLogProb
        Fixed constant returned when computing the log probability for an n-gram whose last word is not in the vocabulary. Note that this is different from the log prob of the unk tag probability.
    • Constructor Detail

      • AbstractNgramLanguageModel

        public AbstractNgramLanguageModel​(int lmOrder,
                                          WordIndexer<W> wordIndexer,
                                          float oovWordLogProb)