Revision: 17743
http://sourceforge.net/p/gate/code/17743
Author: dgmaynard
Date: 2014-03-27 13:51:31 +0000 (Thu, 27 Mar 2014)
Log Message:
-----------
more contextual rules for organisations
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
11:58:28 UTC (rev 17742)
+++ gate/trunk/plugins/ANNIE/resources/NE/org_context.jape 2014-03-27
13:51:31 UTC (rev 17743)
@@ -15,9 +15,15 @@
Phase: Org_Context
-Input: Token Lookup Organization Unknown Location Person JobTitle
+Input: Token Lookup Organization Unknown Location Person JobTitle Initials
Options: control = appelt
+Macro: THE
+(
+ {Token.string == "the"}|
+ {Token.string == "The"}|
+ {Token.string == "THE"}
+)
Rule:OrgContext1
@@ -295,5 +301,23 @@
//}
+Rule: AcronymOrg
+Priority: 30
+ (THE)
+ ({Initials, Unknown.kind == PN}):org
+-->
+{
+gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
+gate.FeatureMap features = Factory.newFeatureMap();
+features.put("rule ", "AcronymOrg");
+features.put("orgType ", "unknown");
+outputAS.add(org.firstNode(), org.lastNode(), "Organization",
+features);
+outputAS.removeAll(org);
+}
+
+
+
+
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