ModelUtil.addCutoffAndIterations(manifestInfoEntries, cutoff, iterations);
Factory factory = new Factory();
// TODO: Fix the EventStream to throw exceptions when training goes wrong
EventStream eventStream = new SDEventStream(samples,
factory.createSentenceContextGenerator(languageCode),
factory.createEndOfSentenceScanner(languageCode));
HashSumEventStream hses = new HashSumEventStream(eventStream);
GISModel sentModel = GIS.trainModel(hses, iterations, cutoff);