public class FileDataSet extends AbstractDataSet
catalog, lexicon, testingDataSet, tokenizer| 构造器和说明 |
|---|
FileDataSet() |
FileDataSet(AbstractModel model) |
FileDataSet(AbstractModel model,
File cache) |
FileDataSet(File cache) |
| 限定符和类型 | 方法和说明 |
|---|---|
Document |
add(String category,
String text)
往训练集中加入一个文档
|
void |
clear()
清空数据集
|
Iterator<Document> |
iterator() |
IDataSet |
shrink(int[] idMap) |
int |
size()
数据集的样本大小
|
add, convert, getCatalog, getLexicon, getTokenizer, isTestingDataSet, load, load, load, load, setTokenizerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FileDataSet(AbstractModel model, File cache) throws FileNotFoundException
public FileDataSet(AbstractModel model) throws IOException
IOExceptionpublic FileDataSet(File cache) throws FileNotFoundException
public FileDataSet()
throws IOException
IOExceptionCopyright © 2014–2017 码农场. All rights reserved.