model = ChunkerME.train(params.getLang(), sampleStream,
params.getCutoff(), params.getIterations());
}
else {
model = ChunkerME.train(params.getLang(), sampleStream,
new DefaultChunkerContextGenerator(), mlParams);
}
} catch (IOException e) {
CmdLineUtil.printTrainingIoError(e);
throw new TerminateToolException(-1);
}