featureGenerator = createFeatureGenerator();
EventStream eventStream = new NameFinderEventStream(samples, type,
new DefaultNameContextGenerator(featureGenerator));
HashSumEventStream hses = new HashSumEventStream(eventStream);
AbstractModel nameFinderModel = GIS.trainModel(iterations, new TwoPassDataIndexer(hses, cutoff));
manifestInfoEntries.put(BaseModel.TRAINING_EVENTHASH_PROPERTY,
hses.calculateHashSum().toString(16));
return new TokenNameFinderModel(languageCode, nameFinderModel,