All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.grammar.number_clean.jape Maven / Gradle / Ivy




Phase:	Number_Clean
Input: Percent Money
Options: control = appelt





Rule: PercentDate
Priority: 50

// If there's a Date annotation within a Percent annotation, remove the Date

(
 {Percent contains Date}
): tag

-->
{
  AnnotationSet tagAS = (AnnotationSet) bindings.get("tag");
 AnnotationSet DateAS = inputAS.get("Date", tagAS.firstNode().getOffset(), tagAS.lastNode().getOffset());

  outputAS.removeAll(DateAS);
}
 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy