Revision: 17747
          http://sourceforge.net/p/gate/code/17747
Author:   dgmaynard
Date:     2014-03-27 15:16:44 +0000 (Thu, 27 Mar 2014)
Log Message:
-----------
better person/organisation disambig

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

Modified: gate/trunk/plugins/ANNIE/resources/NE/org_context.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/org_context.jape      2014-03-27 
15:14:42 UTC (rev 17746)
+++ gate/trunk/plugins/ANNIE/resources/NE/org_context.jape      2014-03-27 
15:16:44 UTC (rev 17747)
@@ -338,3 +338,23 @@
 outputAS.removeAll(org);
 }
 
+
+Rule: PersonOrgEnding
+Priority: 30
+// J.W. Fish & Co should be an Organisation not a Person
+
+(
+ ({Person}):person
+ {Lookup.majorType == cdg}
+):org
+-->
+{
+gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
+gate.AnnotationSet personSet = (gate.AnnotationSet) bindings.get("person");
+gate.FeatureMap features = Factory.newFeatureMap();
+features.put("rule ", "PersonOrgEnding");
+features.put("orgType ", "company");
+outputAS.add(org.firstNode(), org.lastNode(), "Organization",
+features);
+outputAS.removeAll(personSet);
+}

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


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to