EventStream eventStream = new TokSpanEventStream(samples,
useAlphaNumericOptimization, factory.getAlphanumeric(languageCode),
factory.createTokenContextGenerator(languageCode,
getAbbreviations(abbreviations)));
AbstractModel maxentModel = TrainUtil.train(eventStream,
mlParams.getSettings(), manifestInfoEntries);
return new TokenizerModel(languageCode, maxentModel, abbreviations,
useAlphaNumericOptimization, manifestInfoEntries);
}