edu.berkeley.nlp.lm
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 Summary |
long |
offset
Offset of context (prefix) of an n-gram |
int |
order
The (0-based) length of context (i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
ContextEncodedNgramLanguageModel.LmContextInfo
public ContextEncodedNgramLanguageModel.LmContextInfo()