CmdLineUtil.checkOutputFile("tokenizer model", modelOutFile);
ObjectStream<TokenSample> sampleStream = openSampleData("Training",
trainingDataInFile, parameters.getEncoding());
TokenizerModel model;
try {
model = opennlp.tools.tokenize.TokenizerME.train(
parameters.getLanguage(), sampleStream,
parameters.isAlphaNumericOptimizationEnabled(),
parameters.getCutoff(), parameters.getNumberOfIterations());