【发布时间】:2015-01-26 07:15:30
【问题描述】:
我是文本分类的新手,我想用 WEKA 来实现它。我是否必须像下面的 ARFF 文件那样构建一个有监督的训练集?我必须手动做对吗? 在这之后,我该怎么办?使用朴素贝叶斯分类器预测测试集的类别?
@relation test
@attribute text String
@attribute politics {yes,no}
@attribute religion {yes,no}
@attribute another_category {yes,no}
@data
"this is a text about politics",yes,no,no
"this text is about religion",no,yes,no
"this text mixes everything",yes,yes,yes
【问题讨论】:
标签: text weka categorization