int cutoff, int threads) {
GISTrainer trainer = new GISTrainer(printMessagesWhileTraining);
trainer.setSmoothing(smoothing);
trainer.setSmoothingObservation(SMOOTHING_OBSERVATION);
if (modelPrior == null) {
modelPrior = new UniformPrior();
}
return trainer.trainModel(iterations, indexer, modelPrior, cutoff, threads);
}