|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- Value type for each n-gram (either count of prob/backoff)public interface LmReaderCallback<V>
Callback that is called for each n-gram in the collection
Method Summary | |
---|---|
void |
call(int[] ngram,
int startPos,
int endPos,
V value,
String words)
Called for each n-gram |
void |
cleanup()
Called once all reading is done. |
Method Detail |
---|
void call(int[] ngram, int startPos, int endPos, V value, String words)
ngram
- The integer representation of the words as given by the
provided WordIndexervalue
- The value of the n-gramwords
- The string representation of the n-gram (space separated)void cleanup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |