ObjectStream<POSSample> posSampleStream =
new ConllXPOSSampleStreamFactory().create(params);
Detokenizer detokenizer;
try {
detokenizer = new DictionaryDetokenizer(new DetokenizationDictionary(new FileInputStream(new File(params.getDetokenizer()))));
} catch (IOException e) {
System.err.println("Error while loading detokenizer dict: " + e.getMessage());
throw new TerminateToolException(-1);
}