yes i added the features names in the features and yes actually in
extendRule function the features are not empty. In this code:

// expend with feature conditions
            WhiskRule proposedRuleF = null;
            WhiskRuleItem tf = null;
            for (String eachFeature : consideredFeatures) {
              Map<String, String> featureMap =
t.getWordConstraint().getTokenAnnotation()
                      .getFeatureMap();
              String stringValue = featureMap.get(eachFeature);
              if (stringValue != null) {
                proposedRuleF = proposedRule.copy();
                tf = term;
                tf.activateFeature(stringValue);
                proposedRuleF.setNeedsCompile(true);
                if (!rulesToTest.contains(proposedRuleF)) {
                  rulesToTest.add(proposedRuleF);
                }
              }
            }

tf.getActivatedFeatures() is not empty as well but still don't get rules
with FEATUREs.

Best,
Sondes

Reply via email to