PrintWriter pw = IOUtils.encodedOutputStreamPrintWriter(outputStream, null, true);
classifier.classifyAndWriteAnswers(data, featurizedData, pw,
classifier.makeReaderAndWriter());
outputStream.close();
BufferedReader br = new BufferedReader(new FileReader(f));
MultiClassChunkEvalStats stats = new MultiClassChunkEvalStats("O");
score = stats.score(br, "\t");
System.err.println(stats.getConllEvalString());
f.delete();
} catch (Exception ex) {
throw new RuntimeException(ex);
}
}