Revision: 16753
http://sourceforge.net/p/gate/code/16753
Author: markagreenwood
Date: 2013-07-29 08:15:15 +0000 (Mon, 29 Jul 2013)
Log Message:
-----------
slightly more accurate pattern for finding possible dates
Modified Paths:
--------------
gate/trunk/plugins/Tagger_DateNormalizer/src/gate/creole/dates/DateNormalizer.java
Modified:
gate/trunk/plugins/Tagger_DateNormalizer/src/gate/creole/dates/DateNormalizer.java
===================================================================
---
gate/trunk/plugins/Tagger_DateNormalizer/src/gate/creole/dates/DateNormalizer.java
2013-07-26 15:15:55 UTC (rev 16752)
+++
gate/trunk/plugins/Tagger_DateNormalizer/src/gate/creole/dates/DateNormalizer.java
2013-07-29 08:15:15 UTC (rev 16753)
@@ -341,7 +341,7 @@
protected void annotate(Date documentDate, DateParser dp, DateFormat df)
throws ExecutionException {
//now we have a parser create a regexp to look for possible dates
- StringBuilder pattern = new StringBuilder("\\b([0-9]{1,4}");
+ StringBuilder pattern = new
StringBuilder("\\b((([0-9]|[0-9]{2}|[0-9]{4})[^0-9])");
for (String word : dp.getWords()) {
if (word.length() > 0) pattern.append("|(").append(word).append(")");
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs