Revision: 17723
          http://sourceforge.net/p/gate/code/17723
Author:   dgmaynard
Date:     2014-03-21 14:55:37 +0000 (Fri, 21 Mar 2014)
Log Message:
-----------
differentiate between proper nouns that are all capitals and those which aren't

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

Modified: gate/trunk/plugins/ANNIE/resources/NE/first.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/first.jape    2014-03-21 14:49:45 UTC 
(rev 17722)
+++ gate/trunk/plugins/ANNIE/resources/NE/first.jape    2014-03-21 14:55:37 UTC 
(rev 17723)
@@ -65,6 +65,17 @@
 {} 
 
 
+Rule: UpperAllCaps
+// separate proper nouns that are in all caps, as they're more ambiguous
+(
+ {Token.category == NNP, Token.orth == upper}
+ ({Token.string == "-"}
+  {Token.category == NNP, Token.orth == upper}
+ )?
+):tag
+-->
+:tag.Upper = {kind = "allCaps", rule = "Upper"}
+
 Rule: Upper
 // define what can be a possible proper noun - cater for the fact that POS tag 
might not be correct
 (

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