Package edu.berkeley.nlp.lm
Class ContextEncodedNgramLanguageModel.LmContextInfo
java.lang.Object
edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel.LmContextInfo
- Enclosing interface:
- ContextEncodedNgramLanguageModel<W>
Simple class for returning context offsets
- Author:
- adampauls
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
offset
public long offsetOffset of context (prefix) of an n-gram -
order
public int orderThe (0-based) length ofcontext
(i.e.order == 0
iffcontext
refers to a unigram). Use -1 for an empty context.
-
-
Constructor Details
-
LmContextInfo
public LmContextInfo()
-