Java Mahout中的IllegalArgumentException

Java Mahout中的IllegalArgumentException,java,hadoop,mahout,Java,Hadoop,Mahout,我运行了以下命令: //Training the classifier $ mahout trainnb -i train-vectors -el -li labelindex -o model -ow -c //Testing the classifer on the TRAINING set $ mahout testnb -i train-vectors -m model -l labelindex -ow -o tweets-testing -c //Testing the clas

我运行了以下命令:

//Training the classifier
$ mahout trainnb -i train-vectors -el -li labelindex -o model -ow -c

//Testing the classifer on the TRAINING set
$ mahout testnb -i train-vectors -m model -l labelindex -ow -o tweets-testing -c

//Testing the classifier with the TESTING SET
$ mahout testnb -i test-vectors -m model -l labelindex -ow -o tweets-testing -c
在运行最后一个命令时,这是我得到的错误

Exception in thread "main" java.lang.IllegalArgumentException: Label not found:
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
    at org.apache.mahout.classifier.ConfusionMatrix.getCount(ConfusionMatrix.java:102)
    at org.apache.mahout.classifier.ConfusionMatrix.incrementCount(ConfusionMatrix.java:122)
    at org.apache.mahout.classifier.ConfusionMatrix.incrementCount(ConfusionMatrix.java:126)
    at org.apache.mahout.classifier.ConfusionMatrix.addInstance(ConfusionMatrix.java:94)
我正在学习这个例子

我用seqdumper检查了labelindex文件,所有的类/标记都存在。该文件也是HDFS格式的


我在这里做错了什么?

好的,如果您的labelindex文件是正确的。 因为,错误没有指定丢失了什么标签。
检查您的tweet数据是否已标记。我猜,一条或多条推文没有标记

你摇滚@User2331441!你是我的英雄!我如何检查您的推文是否未标记?