Phase: Birthday Input: Token Date Options: control = appelt ////////////////////////////////////////////////////////////// // Birthday Rules Rule: Birthday ( {Token.string == "Born"} {Token.string == ":"} ( {Date} ):birthday ) --> { System.out.println("matched!"); gate.AnnotationSet birthday = (gate.AnnotationSet)bindings.get("birthday"); gate.FeatureMap features = Factory.newFeatureMap(); features.put("rule", "Birthday"); annotations.add(birthday.firstNode(), birthday.lastNode(), "Birthday", features); } Rule: Deathday ( {Token.string == "Died"} {Token.string == ":"} ( {Date} ):deathday ) --> { System.out.println("m4tched!"); gate.AnnotationSet deathday = (gate.AnnotationSet)bindings.get("deathday"); gate.FeatureMap features = Factory.newFeatureMap(); features.put("rule", "Deathday"); annotations.add(deathday.firstNode(), deathday.lastNode(), "Deathday", features); }