for (int i = 0; i < training.size(); i++) {
PairSampleIterator iterator = new PairSampleIterator(training
.get(i), random, 0.5, training.get(i).getNumInstances());
while(iterator.hasNext()) {
Instance inst = iterator.next();
trainingInstances.add(pipe.pipe(inst));
}
}
logger.info("generated " + trainingInstances.size()
+ " training instances");
Classifier classifier = new MaxEntTrainer().train(trainingInstances);