rzo1 commented on code in PR #492:
URL: https://github.com/apache/opennlp/pull/492#discussion_r1116137265
##########
opennlp-tools/src/main/java/opennlp/tools/ml/naivebayes/NaiveBayesTrainer.java:
##########
@@ -228,7 +233,7 @@ private double trainingStats(EvalParameters evalParams) {
}
}
double trainingAccuracy = (double) numCorrect / numEvents;
- display("Stats: (" + numCorrect + "/" + numEvents + ") " +
trainingAccuracy + "\n");
+ logger.info("Stats: (" + numCorrect + "/" + numEvents + ") " +
trainingAccuracy);
Review Comment:
Variable replacement is tracked with
https://issues.apache.org/jira/browse/OPENNLP-1450 (next iteration, next topic
:-) )
##########
opennlp-tools/src/main/java/opennlp/tools/ml/perceptron/PerceptronTrainer.java:
##########
@@ -439,22 +442,10 @@ private double trainingStats(EvalParameters evalParams) {
}
}
double trainingAccuracy = (double) numCorrect / numEvents;
- display("Stats: (" + numCorrect + "/" + numEvents + ") " +
trainingAccuracy + "\n");
+ logger.info("Stats: (" + numCorrect + "/" + numEvents + ") " +
trainingAccuracy);
Review Comment:
https://issues.apache.org/jira/browse/OPENNLP-1450
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]