I added this line: public WhiskRuleItem(TextRulerAnnotation tokenAnnotation) { super(); setWordConstraint(new TextRulerWordConstraint(tokenAnnotation)); * this.activeFeatures = new ArrayList<String>(tokenAnnotation.getFeatureMap().keySet());* }
and it worked, i get rules with FEATURE expression but when the FEATURE is in the context, the rule apply : *BEST EXTENSION IS: SW{REGEXP("humans")->MARKONCE(MBTO00001402)} ALL*? Lemma{FEATURE("lemma", ",")}; Laplacian: 0.25 ; p=3; n=0 *But when it is in the Target, the rule doesn't apply (p=0,n=0):* base1: Term{FEATURE("lemma", "human")->MARKONCE(MBTO00001402)}; base2: Term{FEATURE("lemma", "human")->MARKONCE(MBTO00001402, 1, 2)} ALL*? SPACE; base1: p=0; n=0 --> laplacian = 1.0 base2: p=0; n=0 --> laplacian = 1.0 * Best, Sondes* *