if (constraints == null && constraintsFile != null) {
HashMap<Integer,double[]> constraintsMap =
FeatureConstraintUtil.readConstraintsFromFile(constraintsFile, data);
logger.info("number of constraints: " + constraintsMap.size());
constraints = new ArrayList<MaxEntPRConstraint>();
MaxEntL2FLPRConstraints prConstraints = new MaxEntL2FLPRConstraints(data.getDataAlphabet().size(),
data.getTargetAlphabet().size(),useValues,normalize);
for (int fi : constraintsMap.keySet()) {
prConstraints.addConstraint(fi, constraintsMap.get(fi), qGPV);
}
constraints.add(prConstraints);
}
BitSet instancesWithConstraints = new BitSet(data.size());