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