You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2011/05/20 12:42:43 UTC

svn commit: r1125314 - /incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/model/TrainUtil.java

Author: joern
Date: Fri May 20 10:42:43 2011
New Revision: 1125314

URL: http://svn.apache.org/viewvc?rev=1125314&view=rev
Log:
OPENNLP-175 Fixed an issue in the check which made PERCEPTRON fail

Modified:
    incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/model/TrainUtil.java

Modified: incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/model/TrainUtil.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/model/TrainUtil.java?rev=1125314&r1=1125313&r2=1125314&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/model/TrainUtil.java (original)
+++ incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/model/TrainUtil.java Fri May 20 10:42:43 2011
@@ -140,7 +140,7 @@ public class TrainUtil {
     
     if (MAXENT_VALUE.equals(algorithmName))
         sortAndMerge = true;
-    else if (MAXENT_VALUE.equals(algorithmName))
+    else if (PERCEPTRON_VALUE.equals(algorithmName))
       sortAndMerge = false;
     else
       throw new IllegalStateException("Unexpected algorihtm name: " + algorithmName);