Class ContextEncodedNgramLanguageModel.LmContextInfo

  • Enclosing interface:
    ContextEncodedNgramLanguageModel<W>

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

      Fields 
      Modifier and Type Field Description
      long offset
      Offset of context (prefix) of an n-gram
      int order
      The (0-based) length of context (i.e.
    • Constructor Summary

      Constructors 
      Constructor Description
      LmContextInfo()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • LmContextInfo

        public LmContextInfo()