string2ints(approxMatchFields.value, fieldAlphabet),
string2ints(substringMatchFields.value, fieldAlphabet));
InstanceList trainingInstances = new InstanceList(pipe);
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");