Revision: 17364
http://sourceforge.net/p/gate/code/17364
Author: dgmaynard
Date: 2014-02-20 12:14:31 +0000 (Thu, 20 Feb 2014)
Log Message:
-----------
better URL recognition
Modified Paths:
--------------
gate/trunk/plugins/ANNIE/resources/NE/url.jape
Modified: gate/trunk/plugins/ANNIE/resources/NE/url.jape
===================================================================
--- gate/trunk/plugins/ANNIE/resources/NE/url.jape 2014-02-20 12:13:20 UTC
(rev 17363)
+++ gate/trunk/plugins/ANNIE/resources/NE/url.jape 2014-02-20 12:14:31 UTC
(rev 17364)
@@ -67,3 +67,18 @@
-->
:urlAddress.Url = {kind = "urlAddress", rule = "UrlContext"}
+Rule: UrlGuess
+Priority: 10
+// token(s) + url_ending e.g. gate.ac.uk
+
+(
+ ( {Token}
+ {Token.string == "."})+
+ {Lookup.majorType == url_key}
+ {Token.string == "."}
+ {Lookup.majorType == country_code}
+)
+:urlAddress
+-->
+ :urlAddress.Url = {kind = "urlAddress", rule = "UrlGuess"}
+
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs