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/06/06 17:23:14 UTC
svn commit: r1132670 -
/incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/perceptron/PerceptronModel.java
Author: joern
Date: Mon Jun 6 15:23:14 2011
New Revision: 1132670
URL: http://svn.apache.org/viewvc?rev=1132670&view=rev
Log:
OPENNLP-154 Replaced tabs with spaces.
Modified:
incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/perceptron/PerceptronModel.java
Modified: incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/perceptron/PerceptronModel.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/perceptron/PerceptronModel.java?rev=1132670&r1=1132669&r2=1132670&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/perceptron/PerceptronModel.java (original)
+++ incubator/opennlp/trunk/opennlp-maxent/src/main/java/opennlp/perceptron/PerceptronModel.java Mon Jun 6 15:23:14 2011
@@ -107,14 +107,14 @@ public class PerceptronModel extends Abs
}
for (int oid = 0; oid < numOutcomes; oid++)
- prior[oid] = Math.exp(prior[oid]/maxPrior);
+ prior[oid] = Math.exp(prior[oid]/maxPrior);
double normal = 0.0;
for (int oid = 0; oid < numOutcomes; oid++)
- normal += prior[oid];
+ normal += prior[oid];
for (int oid = 0; oid < numOutcomes; oid++)
- prior[oid] /= normal;
+ prior[oid] /= normal;
}
return prior;
}