public final MaxentModel train(DataIndexer indexer) throws IOException {
if (!isValid()) {
throw new IllegalArgumentException("trainParams are not valid!");
}
MaxentModel model = doTrain(indexer);
<BUG>parameters.addToReport(AbstractTrainer.TRAINER_TYPE_PARAM, EventTrainer.EVENT_VALUE);
return model;</BUG>
}
public final MaxentModel train(ObjectStream<Event> events) throws IOException {
if (!isValid()) {

public final MaxentModel train(DataIndexer indexer) throws IOException {
if (!isValid()) {
throw new IllegalArgumentException("trainParams are not valid!");
}
MaxentModel model = doTrain(indexer);
addToReport(AbstractTrainer.TRAINER_TYPE_PARAM, EventTrainer.EVENT_VALUE);
return model;
}
public final MaxentModel train(ObjectStream<Event> events) throws IOException {
if (!isValid()) {
