EventModelSequenceTrainer trainer = TrainerFactory.getEventModelSequenceTrainer(
trainParams.getSettings(), manifestInfoEntries);
nameFinderModel = trainer.train(ss);
} else if (TrainerType.SEQUENCE_TRAINER.equals(trainerType)) {
SequenceTrainer trainer = TrainerFactory.getSequenceModelTrainer(
trainParams.getSettings(), manifestInfoEntries);
NameSampleSequenceStream ss = new NameSampleSequenceStream(samples, featureGenerator, false);
seqModel = trainer.train(ss);
} else {
throw new IllegalStateException("Unexpected trainer type!");
}
// TODO: Pass the sequence codec down to the model! We will just store the class