Class ContextEncodedNgramLanguageModel.LmContextInfo

java.lang.Object
edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel.LmContextInfo
Enclosing interface:
ContextEncodedNgramLanguageModel<W>

public static class ContextEncodedNgramLanguageModel.LmContextInfo extends Object
Simple class for returning context offsets
Author:
adampauls
  • Field Details

    • offset

      public long offset
      Offset of context (prefix) of an n-gram
    • order

      public int order
      The (0-based) length of context (i.e. order == 0 iff context refers to a unigram). Use -1 for an empty context.
  • Constructor Details

    • LmContextInfo

      public LmContextInfo()