Revision: 17693
          http://sourceforge.net/p/gate/code/17693
Author:   dgmaynard
Date:     2014-03-18 16:20:50 +0000 (Tue, 18 Mar 2014)
Log Message:
-----------
this may be a bad idea

Modified Paths:
--------------
    gate/trunk/plugins/ANNIE/resources/NE/loc_context.jape
    gate/trunk/plugins/ANNIE/resources/NE/name_context.jape

Modified: gate/trunk/plugins/ANNIE/resources/NE/loc_context.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/loc_context.jape      2014-03-18 
16:19:22 UTC (rev 17692)
+++ gate/trunk/plugins/ANNIE/resources/NE/loc_context.jape      2014-03-18 
16:20:50 UTC (rev 17693)
@@ -18,53 +18,53 @@
 Options: control = appelt
 
 
-Rule: LocConjLoc1 
-Priority: 10
+//Rule: LocConjLoc1 
+//Priority: 10
 // Unknown and Location 
 
-(
-{Unknown.kind == PN}
-):loc
-(
-{Token.category == CC}
-({Token.category == DT}
-)?
-{Location}
-)
--->
-{
-gate.AnnotationSet loc = (gate.AnnotationSet) bindings.get("loc");
-gate.FeatureMap features = Factory.newFeatureMap();
-features.put("rule ", "LocConjLoc1");
-outputAS.add(loc.firstNode(), loc.lastNode(), "Location",
-features);
-outputAS.removeAll(loc);
-}
+//(
+//{Unknown.kind == PN}
+//):loc
+//(
+//{Token.category == CC}
+//({Token.category == DT}
+//)?
+//{Location}
+//)
+//-->
+//{
+//gate.AnnotationSet loc = (gate.AnnotationSet) bindings.get("loc");
+//gate.FeatureMap features = Factory.newFeatureMap();
+//features.put("rule ", "LocConjLoc1");
+//outputAS.add(loc.firstNode(), loc.lastNode(), "Location",
+//features);
+//outputAS.removeAll(loc);
+//}
 
 
-Rule: LocConjLoc2
-Priority: 10
+//Rule: LocConjLoc2
+//Priority: 10
 
 // Location and Unknown
 
-(
- {Location}
- {Token.category == CC}
- ({Token.category == DT}
- )?
-)
-(
- {Unknown.kind == PN}
-):loc
--->
- {
-gate.AnnotationSet loc = (gate.AnnotationSet) bindings.get("loc");
-gate.FeatureMap features = Factory.newFeatureMap();
-features.put("rule ", "LocConjLoc2");
-outputAS.add(loc.firstNode(), loc.lastNode(), "Location",
-features);
-outputAS.removeAll(loc);
-}
+//(
+// {Location}
+// {Token.category == CC}
+ //({Token.category == DT}
+ //)?
+//)
+//(
+// {Unknown.kind == PN}
+//):loc
+//-->
+// {
+//gate.AnnotationSet loc = (gate.AnnotationSet) bindings.get("loc");
+//gate.FeatureMap features = Factory.newFeatureMap();
+//features.put("rule ", "LocConjLoc2");
+//outputAS.add(loc.firstNode(), loc.lastNode(), "Location",
+//features);
+//outputAS.removeAll(loc);
+//}
 
 
 Rule: UnknownLocRegion

Modified: gate/trunk/plugins/ANNIE/resources/NE/name_context.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/name_context.jape     2014-03-18 
16:19:22 UTC (rev 17692)
+++ gate/trunk/plugins/ANNIE/resources/NE/name_context.jape     2014-03-18 
16:20:50 UTC (rev 17693)
@@ -134,6 +134,22 @@
 -->
   {}
 
+Rule:PersonSays
+Priority: 20
+(
+ {Unknown}({Unknown})?
+):tag
+ ({Lookup.majorType == say})
+-->
+{
+//removes old  "Unknown" annotations and adds a new "Person" one
+gate.AnnotationSet person = (gate.AnnotationSet) bindings.get("tag");
+gate.FeatureMap features = Factory.newFeatureMap();
+features.put("rule", "PersonSays");
+outputAS.add(person.firstNode(), person.lastNode(), "Person",
+features);
+outputAS.removeAll(person);
+}
 
 
 
@@ -145,6 +161,3 @@
 
 
 
-
-
-

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to