testSet.loadThruPipes(new SequenceReader(testfile, false, "utf8"));
System.out.println("测试样本个数: " + testSet.size()); //
String[][] labelsSet = new String[testSet.size()][];
for (int i = 0; i < testSet.size(); i++) {
Instance carrier = testSet.get(i);
int[] pred = (int[]) cl.classify(carrier).getLabel(0);
labelsSet[i] = labels.lookupString(pred);
}
String s = SimpleFormatter.format(testSet, labelsSet);