double error = 0;
int senError = 0;
int len = 0;
boolean hasENG = false;
int ENG_all = 0, ENG_right = 0;
Loss loss = new HammingLoss();
String[][] labelsSet = new String[testSet.size()][];
String[][] targetSet = new String[testSet.size()][];
LabelAlphabet labels = cl.getAlphabetFactory().buildLabelAlphabet(
"labels");
for (int i = 0; i < testSet.size(); i++) {
Instance carrier = testSet.get(i);
int[] pred = (int[]) cl.classify(carrier).getLabel(0);
if (acc) {
len += pred.length;
double e = loss.calc(carrier.getTarget(), pred);
error += e;
if(e != 0)
senError++;
//测试中英混杂语料
if(hasENG) {