geConstraints.addConstraint(fi, constraintsMap.get(fi), 1);
}
constraints.add(geConstraints);
}
else {
MaxEntKLFLGEConstraints geConstraints = new MaxEntKLFLGEConstraints(train.getDataAlphabet().size(),
train.getTargetAlphabet().size(),useValues);
for (int fi : constraintsMap.keySet()) {
geConstraints.addConstraint(fi, constraintsMap.get(fi), 1);
}
constraints = new ArrayList<MaxEntGEConstraint>();
constraints.add(geConstraints);
}
}