Revision: 18224
          http://sourceforge.net/p/gate/code/18224
Author:   dgmaynard
Date:     2014-07-31 17:51:20 +0000 (Thu, 31 Jul 2014)
Log Message:
-----------
need to remove Unknowns after they've been matched, in case the Orthomatcher 
gets them too

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

Modified: gate/trunk/plugins/ANNIE/resources/NE/loc_context.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/loc_context.jape      2014-07-31 
17:11:38 UTC (rev 18223)
+++ gate/trunk/plugins/ANNIE/resources/NE/loc_context.jape      2014-07-31 
17:51:20 UTC (rev 18224)
@@ -82,7 +82,11 @@
  {Location.locType == region}
 )
 -->
- :loc.Location = {rule = "UnknownLocRegion"}
+ :loc.Location = {rule = "UnknownLocRegion"},
+ {
+gate.AnnotationSet loc = (gate.AnnotationSet) bindings.get("tag");
+outputAS.removeAll(loc);
+}
 
 Rule: LocState
 Priority: 100
@@ -104,5 +108,8 @@
  {Lookup.majorType == loc_general_key}
 )
 -->
-:tag.Location = {locType = unknown, rule = "UnknownLocKey"}
-
+:tag.Location = {locType = unknown, rule = "UnknownLocKey"},
+{
+gate.AnnotationSet loc = (gate.AnnotationSet) bindings.get("tag");
+outputAS.removeAll(loc);
+}

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


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to