原因有几种:(前1 种是老外给出的答案)
1、
you have some values occurring that are not exactly as declared in the header
If you get this error message than you seem to have declared a nominal attribute in the ARFF header section, but Weka came across a value ("X") in the data (in line Y) for this particular attribute that wasn't listed as possible value. All nominal values that appear in the data must be declared in the header.
2、如果是中文,可能是识别问题。需要将RunWeka.ini中的【fileEncoding修改为中文支持的】举例:
fileEncoding=Cp936
另外, 最好不要在数据 中出现以下字符
, = " ' *+ -%