CmdLineUtil.checkOutputFile("sentence detector model", modelOutFile);
ObjectStream<SentenceSample> sampleStream =
openSampleData("Training", trainingDataInFile, params.getEncoding());
SentenceModel model;
try {
Dictionary dict = loadDict(params.getAbbDict());
if (mlParams == null) {
model = SentenceDetectorME.train(params.getLang(), sampleStream, true, dict,
params.getCutoff(), params.getIterations());