public class Document extends BagOfWordsDocument
| Modifier and Type | Field and Description |
|---|---|
int |
category
文档所属类目
|
tfMap| Constructor and Description |
|---|
Document(Catalog catalog,
Lexicon lexicon,
String category,
String[] tokenArray)
一般用在训练集构造文档时
|
Document(DataInputStream in) |
Document(ITrie<Integer> wordIdTrie,
String[] tokenArray)
一般用在预测时构造文档用
|
Document(Map<String,Integer> categoryId,
BinTrie<Integer> wordId,
String category,
String[] tokenArray)
一般用在测试集构造文档时使用
|
public Document(Catalog catalog, Lexicon lexicon, String category, String[] tokenArray)
catalog - lexicon - category - tokenArray - public Document(ITrie<Integer> wordIdTrie, String[] tokenArray)
wordIdTrie - tokenArray - public Document(Map<String,Integer> categoryId, BinTrie<Integer> wordId, String category, String[] tokenArray)
categoryId - wordId - category - tokenArray - public Document(DataInputStream in) throws IOException
IOExceptionCopyright © 2014–2021 码农场. All rights reserved.