edu.berkeley.nlp.lm
Class ContextEncodedNgramLanguageModel.LmContextInfo

java.lang.Object
  extended by 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 Summary
 long offset
          Offset of context (prefix) of an n-gram
 int order
          The (0-based) length of context (i.e.
 
Constructor Summary
ContextEncodedNgramLanguageModel.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

ContextEncodedNgramLanguageModel.LmContextInfo

public ContextEncodedNgramLanguageModel.LmContextInfo()