Revision: 18909
http://sourceforge.net/p/gate/code/18909
Author: dgmaynard
Date: 2015-09-15 11:37:47 +0000 (Tue, 15 Sep 2015)
Log Message:
-----------
added something to deal with weird hyphenation token issues
Modified Paths:
--------------
gate/trunk/plugins/ANNIE/resources/NE/first.jape
gate/trunk/plugins/ANNIE/resources/NE/main.jape
Added Paths:
-----------
gate/trunk/plugins/ANNIE/resources/NE/hyphens.jape
Modified: gate/trunk/plugins/ANNIE/resources/NE/first.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/first.jape 2015-09-15 11:21:20 UTC
(rev 18908)
+++ gate/trunk/plugins/ANNIE/resources/NE/first.jape 2015-09-15 11:37:47 UTC
(rev 18909)
@@ -93,3 +93,5 @@
+
+
Added: gate/trunk/plugins/ANNIE/resources/NE/hyphens.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/hyphens.jape
(rev 0)
+++ gate/trunk/plugins/ANNIE/resources/NE/hyphens.jape 2015-09-15 11:37:47 UTC
(rev 18909)
@@ -0,0 +1,25 @@
+Phase: Hyphens
+Input: Token SpaceToken
+Options: control = appelt
+
+/* A phase to deal with weird problems in hyphenated words
+*/
+
+Rule: UpperHyphenated
+// two NNPs separated by no white space should also be an Upper.
+// This happens when they're hyphenated and the hyphen is part of the first NNP
+
+(
+ ({Token.category == NNP}|
+ {Token.orth == upperInitial}|
+ {Token.orth == mixedCaps}
+ )
+ (
+ {Token.category == NNP}|
+ {Token.orth == upperInitial}|
+ {Token.orth == mixedCaps}
+ )
+):tag
+-->
+:tag.Upper = {rule = "UpperHyphenated"}
+
Modified: gate/trunk/plugins/ANNIE/resources/NE/main.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/main.jape 2015-09-15 11:21:20 UTC
(rev 18908)
+++ gate/trunk/plugins/ANNIE/resources/NE/main.jape 2015-09-15 11:37:47 UTC
(rev 18909)
@@ -17,6 +17,7 @@
Phases:
numberletter
first
+hyphens
firstname
name
name_post
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