public class CacheCorpus extends Corpus
cacheFile, config, encoding, eoc, table, trainWords, vocab, vocabIndexMap, vocabMaxSize, vocabSize| 构造器和说明 |
|---|
CacheCorpus(Corpus cloneSrc) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
nextWord()
Read the next word from the corpus
|
int |
readWordIndex() |
void |
rewind(int numThreads,
int id)
reset current corpus to initial status
|
addWordToVocab, close, endOfCorpus, getTrainWords, getVocab, getVocabIndexMap, getVocabSize, shutdownpublic CacheCorpus(Corpus cloneSrc) throws IOException
IOExceptionpublic String nextWord() throws IOException
CorpusnextWord 在类中 CorpusIOExceptionpublic int readWordIndex()
throws IOException
readWordIndex 在类中 CorpusIOExceptionpublic void rewind(int numThreads,
int id)
throws IOException
Corpusrewind 在类中 CorpusIOExceptionCopyright © 2014–2017 码农场. All rights reserved.