Revision: 18155
          http://sourceforge.net/p/gate/code/18155
Author:   dgmaynard
Date:     2014-07-04 13:22:03 +0000 (Fri, 04 Jul 2014)
Log Message:
-----------
probably breaking things left right and centre. URLs can't include Entities now

Modified Paths:
--------------
    gate/trunk/plugins/ANNIE/resources/NE/name-twitter.jape
    gate/trunk/plugins/ANNIE/resources/NE/url.jape

Modified: gate/trunk/plugins/ANNIE/resources/NE/name-twitter.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/name-twitter.jape     2014-07-04 
12:36:41 UTC (rev 18154)
+++ gate/trunk/plugins/ANNIE/resources/NE/name-twitter.jape     2014-07-04 
13:22:03 UTC (rev 18155)
@@ -86,7 +86,7 @@
 Priority: 1000
 // stops certain things being recognised as People
 (
- {ClosedClass}|{URL}
+ ({ClosedClass}|{URL})[1,5]
 )
 -->
 {}

Modified: gate/trunk/plugins/ANNIE/resources/NE/url.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/url.jape      2014-07-04 12:36:41 UTC 
(rev 18154)
+++ gate/trunk/plugins/ANNIE/resources/NE/url.jape      2014-07-04 13:22:03 UTC 
(rev 18155)
@@ -32,12 +32,25 @@
 
 (      
  {UrlPre}
- ({Token})*
+ ({Token})[1,7]
 ):urlAddress 
-({SpaceToken})
+ ({SpaceToken})
 -->
 :urlAddress.Url = {kind = "urlAddress", rule = "Url1"}
 
+Rule: Url2
+Priority: 100
+
+(      
+ {UrlPre}
+ ({Token})[1,7]
+ {Token.string == "."}
+ {Lookup.majorType == country_code}
+):urlAddress 
+ 
+-->
+:urlAddress.Url = {kind = "urlAddress", rule = "Url2"}
+
 Rule: UrlContext
 Priority: 20
 

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


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to