Revision: 18114
http://sourceforge.net/p/gate/code/18114
Author: dgmaynard
Date: 2014-06-23 10:42:52 +0000 (Mon, 23 Jun 2014)
Log Message:
-----------
new rules for finding newspapers
Modified Paths:
--------------
gate/trunk/plugins/ANNIE/resources/NE/name.jape
gate/trunk/plugins/ANNIE/resources/gazetteer/lists.def
Modified: gate/trunk/plugins/ANNIE/resources/NE/name.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/name.jape 2014-06-23 10:34:51 UTC
(rev 18113)
+++ gate/trunk/plugins/ANNIE/resources/NE/name.jape 2014-06-23 10:42:52 UTC
(rev 18114)
@@ -838,7 +838,6 @@
-
///////////////////////////////////////////////////////////////////
// Organisation Rules
@@ -937,6 +936,33 @@
:orgName.TempOrganization = {kind = "orgName", rule=LocOrganization}
+Rule: NewspaperEnding
+Priority: 200
+// GSA Today
+
+(
+ ({Upper}|{Initials})
+ {Lookup.majorType == newspaper_ending}
+):orgName
+-->
+{
+ gate.FeatureMap features = Factory.newFeatureMap();
+gate.AnnotationSet orgSet = (gate.AnnotationSet)bindings.get("orgName");
+gate.AnnotationSet org = (gate.AnnotationSet)orgSet.get("Lookup");
+
+if (org != null && org.size()>0)
+{
+ gate.Annotation orgAnn = (gate.Annotation)org.iterator().next();
+ features.put("orgType", orgAnn.getFeatures().get("minorType"));
+}
+// create some new features
+ features.put("rule", "NewspaperEndng");
+// create a TempOrg annotation and add the features we've created
+outputAS.add(orgSet.firstNode(), orgSet.lastNode(), "TempOrganization",
+features);
+}
+
+
Rule: INOrgXandY
Priority: 200
Modified: gate/trunk/plugins/ANNIE/resources/gazetteer/lists.def
===================================================================
--- gate/trunk/plugins/ANNIE/resources/gazetteer/lists.def 2014-06-23
10:34:51 UTC (rev 18113)
+++ gate/trunk/plugins/ANNIE/resources/gazetteer/lists.def 2014-06-23
10:42:52 UTC (rev 18114)
@@ -102,4 +102,4 @@
water.lst:location:region
year.lst:year
city_uk_ambig.lst:location:city
-newspaper_ending.lst:newspaper_ending
+newspaper_ending.lst:newspaper_ending:newspaper
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs