Sorry -- I added it to the substantial change that I checked in before, but thought this was too inconsequential to bother with.
On Mon, Jun 6, 2011 at 4:18 PM, Jörn Kottmann <[email protected]> wrote: > Please mention the jira issue in the comment, > usually we do like this: > OPENNLP-154 Removed commented out code I forgot to nix before. > > I will add it, then it is linked to the issue. > > Jörn > > On 6/6/11 11:14 PM, [email protected] wrote: > >> Author: jbaldrid >> Date: Mon Jun 6 21:14:13 2011 >> New Revision: 1132775 >> >> URL: http://svn.apache.org/viewvc?rev=1132775&view=rev >> Log: >> Removed commented out code I forgot to nix before. >> >> 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=1132775&r1=1132774&r2=1132775&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 21:14:13 2011 >> @@ -112,13 +112,6 @@ public class PerceptronModel extends Abs >> normal += prior[oid]; >> } >> >> - //for (int oid = 0; oid< numOutcomes; oid++) >> - // prior[oid] = Math.exp(prior[oid]/maxPrior); >> - // >> - //double normal = 0.0; >> - //for (int oid = 0; oid< numOutcomes; oid++) >> - // normal += prior[oid]; >> - >> for (int oid = 0; oid< numOutcomes; oid++) >> prior[oid] /= normal; >> } >> >> >> > -- Jason Baldridge Assistant Professor, Department of Linguistics The University of Texas at Austin http://www.jasonbaldridge.com http://twitter.com/jasonbaldridge
