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

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

Go to download

ANNIE is a general purpose information extraction system that provides the building blocks of many other GATE applications.

There is a newer version: 9.1
Show newest version



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