public class GoogleLmReader<W> extends java.lang.Object implements LmReader<LongRef,NgramOrderedLmReaderCallback<LongRef>>
| Constructor and Description |
|---|
GoogleLmReader(java.lang.String rootDir,
WordIndexer<W> wordIndexer,
ConfigOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
static <W> void |
addToIndexer(WordIndexer<W> wordIndexer,
java.lang.String sortedVocabPath) |
int |
getLmOrder() |
void |
parse(NgramOrderedLmReaderCallback<LongRef> callback) |
public GoogleLmReader(java.lang.String rootDir,
WordIndexer<W> wordIndexer,
ConfigOptions opts)
public int getLmOrder()
public void parse(NgramOrderedLmReaderCallback<LongRef> callback)
parse in interface LmReader<LongRef,NgramOrderedLmReaderCallback<LongRef>>public static <W> void addToIndexer(WordIndexer<W> wordIndexer, java.lang.String sortedVocabPath)
sortedVocabPath -