W
- public class TextReader<W> extends Object implements LmReader<LongRef,LmReaderCallback<LongRef>>
Constructor and Description |
---|
TextReader(Iterable<String> lineIterator,
WordIndexer<W> wordIndexer) |
TextReader(List<String> inputFiles,
WordIndexer<W> wordIndexer) |
Modifier and Type | Method and Description |
---|---|
void |
parse(LmReaderCallback<LongRef> callback)
Reads newline-separated plain text from inputFiles, and writes an ARPA lm
file to outputFile.
|
public TextReader(List<String> inputFiles, WordIndexer<W> wordIndexer)
public TextReader(Iterable<String> lineIterator, WordIndexer<W> wordIndexer)
public void parse(LmReaderCallback<LongRef> callback)
parse
in interface LmReader<LongRef,LmReaderCallback<LongRef>>
inputFiles
- outputFile
-