private static void applyTemplatesToState( List<AbstractTemplate<State>> templates, State state, boolean force) { log.debug("All entities: %s", state.getEntities()); log.debug("All entityIDs: %s", state.getEntityIDs()); log.debug("Non-fixed entities: %s", state.getEditableEntities()); log.debug("Non-fixed entityIDs: %s", state.getEditableEntityIDs()); for (AbstractTemplate<State> t : templates) { t.applyTo(state, force); } Collection<AbstractFactor> factors = state.getFactorGraph().getFactors(); int i = 0; for (AbstractFactor factor : factors) { log.debug("\tFactor %s", factor); Vector v = factor.getFeatureVector(); for (String f : v.getFeatureNames()) { log.debug( "\t%s:\t%s", EvaluationUtil.featureWeightFormat.format(v.getValueOfFeature(f)), f); } i++; } }