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/24 10:40:06 UTC
svn commit: r1126932 -
/incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/maxent/GISTrainer.java
Author: joern
Date: Tue May 24 08:40:05 2011
New Revision: 1126932
URL: http://svn.apache.org/viewvc?rev=1126932&view=rev
Log:
OPENNLP-29 Now prints out the number of used threads
Modified:
incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/maxent/GISTrainer.java
Modified: incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/maxent/GISTrainer.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/maxent/GISTrainer.java?rev=1126932&r1=1126931&r2=1126932&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/maxent/GISTrainer.java (original)
+++ incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/maxent/GISTrainer.java Tue May 24 08:40:05 2011
@@ -386,7 +386,11 @@ class GISTrainer {
display("...done.\n");
/***************** Find the parameters ************************/
- display("Computing model parameters...\n");
+ if (threads == 1)
+ display("Computing model parameters ...\n");
+ else
+ display("Computing model parameters in " + threads +" threads...\n");
+
findParameters(iterations, correctionConstant);
/*************** Create and return the model ******************/