130131132133134135136137138139140
label = sp.o1; } else { StringInstance ss = StringTrainSpace.toInstance(line, hasWeight); r = sModel.predictBest(ss.getFeatureVector()); label = ss.getLabel(); } fout.println(r.label+" "+r.score); if (r.label.equals(label)) correct++;