Revision: 17817
http://sourceforge.net/p/gate/code/17817
Author: markagreenwood
Date: 2014-04-11 15:28:17 +0000 (Fri, 11 Apr 2014)
Log Message:
-----------
I think I've fixed the weird number format exceptions in the Learning plugin,
fingers crossed
Modified Paths:
--------------
gate/trunk/gate.l4j.ini
gate/trunk/plugins/Learning/src/gate/learning/DocFeatureVectors.java
Modified: gate/trunk/gate.l4j.ini
===================================================================
--- gate/trunk/gate.l4j.ini 2014-04-11 14:28:28 UTC (rev 17816)
+++ gate/trunk/gate.l4j.ini 2014-04-11 15:28:17 UTC (rev 17817)
@@ -1,2 +1,2 @@
--Xmx1G
+-Xmx8G
-Xms200m
Modified: gate/trunk/plugins/Learning/src/gate/learning/DocFeatureVectors.java
===================================================================
--- gate/trunk/plugins/Learning/src/gate/learning/DocFeatureVectors.java
2014-04-11 14:28:28 UTC (rev 17816)
+++ gate/trunk/plugins/Learning/src/gate/learning/DocFeatureVectors.java
2014-04-11 15:28:17 UTC (rev 17817)
@@ -67,14 +67,14 @@
// First get the position information for the current NLP feature
positionCurr = 0;
- if(feat[j] != null && Pattern.matches((".+\\[[-0-9]+\\]$"), feat[j])) {
+ if(feat[j] != null && Pattern.matches((".+\\[-?[0-9]+\\]$"), feat[j]))
{
int ind = feat[j].lastIndexOf('[');
String positionStr = feat[j].substring(ind + 1, feat[j].length() -
1);
try {
positionCurr = Integer.parseInt(positionStr);
}
catch(NumberFormatException e) {
- // FIXME: Learning PR bug
+ // shouldn't happen now I've "fixed" the regexp, fingers crossed!
e.printStackTrace();
break;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs