rzo1 commented on code in PR #492:
URL: https://github.com/apache/opennlp/pull/492#discussion_r1116137978
##########
opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/Parser.java:
##########
@@ -444,33 +450,33 @@ else if (1 - cprobs[completeIndex] > probMass) { //just
incomplete advances
if (cprobs[completeIndex] > probMass) {
setComplete(updatedNode);
newParse2.addProb(StrictMath.log(cprobs[completeIndex]));
- if (debugOn) System.out.println("Only advancing complete
node");
+ if (logger.isDebugEnabled()) logger.debug("Only advancing
complete node");
} else if (1 - cprobs[completeIndex] > probMass) {
setIncomplete(updatedNode);
newParse2.addProb(StrictMath.log(1 - cprobs[completeIndex]));
- if (debugOn) System.out.println("Only advancing incomplete
node");
+ if (logger.isDebugEnabled()) logger.debug("Only advancing
incomplete node");
} else {
setComplete(updatedNode);
Parse newParse3 = newParse2.cloneRoot(updatedNode,
originalZeroIndex);
newParse3.addProb(StrictMath.log(cprobs[completeIndex]));
newParsesList.add(newParse3);
setIncomplete(updatedNode);
newParse2.addProb(StrictMath.log(1 - cprobs[completeIndex]));
- if (debugOn)
- System.out.println("Advancing both complete and incomplete
nodes; c="
+ if (logger.isDebugEnabled())
+ logger.debug("Advancing both complete and incomplete
nodes; c="
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]