Revision: 17694
          http://sourceforge.net/p/gate/code/17694
Author:   dgmaynard
Date:     2014-03-18 16:30:35 +0000 (Tue, 18 Mar 2014)
Log Message:
-----------
even more dodgy ideas

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

Modified: gate/trunk/plugins/ANNIE/resources/NE/name_context.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/name_context.jape     2014-03-18 
16:20:50 UTC (rev 17693)
+++ gate/trunk/plugins/ANNIE/resources/NE/name_context.jape     2014-03-18 
16:30:35 UTC (rev 17694)
@@ -152,6 +152,22 @@
 }
 
 
+Rule: SaysPerson
+Priority: 20
+({Lookup.majorType == say})
+(
+ {Unknown}({Unknown})?
+):tag
+-->
+{
+//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", "SaysPerson");
+outputAS.add(person.firstNode(), person.lastNode(), "Person",
+features);
+outputAS.removeAll(person);
+}
 
 
 
@@ -160,4 +176,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