ObjectStream<TokenSample> sampleStream = TokenizerTrainerTool.openSampleData(
"Test", new File(CmdLineUtil.getParameter("-data", args)), encoding);
try {
evaluator.evaluate(sampleStream);
} catch (IOException e) {
System.err.println("failed");
System.err.println("Reading test data error " + e.getMessage());
throw new TerminateToolException(-1);
} finally {