Package edu.berkeley.nlp.lm.io
Interface ArpaLmReaderCallback<V>
- Type Parameters:
V- Value type for each n-gram (either count of prob/backoff)
- All Superinterfaces:
LmReaderCallback<V>,NgramOrderedLmReaderCallback<V>
- All Known Implementing Classes:
FirstPassCallback,KneserNeyFileWritingLmReaderCallback,NgramMapAddingCallback
Callback that is called for each n-gram in the collection
- Author:
- adampauls
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitWithLengths(List<Long> numNGrams) Called initially with a list of how many n-grams will appear for each order.Methods inherited from interface edu.berkeley.nlp.lm.io.LmReaderCallback
call, cleanupMethods inherited from interface edu.berkeley.nlp.lm.io.NgramOrderedLmReaderCallback
handleNgramOrderFinished, handleNgramOrderStarted
-
Method Details
-
initWithLengths
Called initially with a list of how many n-grams will appear for each order.- Parameters:
numNGrams- maps n-gram orders to number of n-grams (i.e. numNGrams.get(0) is the number of unigrams)
-