String encoding = "UTF-8";
try {
DummyChunkSampleStream predictedSample = new DummyChunkSampleStream(
new PlainTextByLineStream(
new InputStreamReader(inPredicted, encoding)), true);
DummyChunkSampleStream expectedSample = new DummyChunkSampleStream(
new PlainTextByLineStream(new InputStreamReader(inExpected)), false);
Chunker dummyChunker = new DummyChunker(predictedSample);
ChunkerDetailedFMeasureListener listener = new ChunkerDetailedFMeasureListener();
ChunkerEvaluator evaluator = new ChunkerEvaluator(dummyChunker, listener);