int totsent = 0;
int errroot = 0;
System.out.print("Beginning the test ... ");
// 输入
CoNLLReader reader = new CoNLLReader(testFile);
// 输出
BufferedWriter writer = null;
if (resultFile != null)
writer = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(resultFile), charset));
long beginTime = System.currentTimeMillis();
while (reader.hasNext()) {
Sentence instance = (Sentence) reader.next();
// int[] golds = new int[instance.length()];
int[] heads = (int[]) instance.getTarget();
// System.arraycopy(heads, 0, golds, 0, golds.length);
// instance.setSource(heads);