You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/06/01 02:51:59 UTC

[64/94] [abbrv] incubator-joshua git commit: changed some debugging levels

changed some debugging levels


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/30b328b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/30b328b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/30b328b5

Branch: refs/heads/master
Commit: 30b328b5f36591cd4da3dad963df30c8ddb745bf
Parents: b32bc8a
Author: Matt Post <po...@cs.jhu.edu>
Authored: Thu May 26 18:27:22 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Thu May 26 18:27:22 2016 -0400

----------------------------------------------------------------------
 .../java/org/apache/joshua/decoder/chart_parser/Chart.java     | 6 +++---
 .../apache/joshua/decoder/chart_parser/ComputeNodeResult.java  | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/30b328b5/src/main/java/org/apache/joshua/decoder/chart_parser/Chart.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/joshua/decoder/chart_parser/Chart.java b/src/main/java/org/apache/joshua/decoder/chart_parser/Chart.java
index 7dd3be9..6fb3782 100644
--- a/src/main/java/org/apache/joshua/decoder/chart_parser/Chart.java
+++ b/src/main/java/org/apache/joshua/decoder/chart_parser/Chart.java
@@ -432,7 +432,7 @@ public class Chart {
     if (null == this.cells.get(0, sourceLength)
         || !this.goalBin.transitToGoal(this.cells.get(0, sourceLength), this.featureFunctions,
             this.sourceLength)) {
-      LOG.info("Input {}: Parse failure (either no derivations exist or pruning is too aggressive",
+      LOG.warn("Input {}: Parse failure (either no derivations exist or pruning is too aggressive",
           sentence.id());
       return null;
     }
@@ -624,7 +624,7 @@ public class Chart {
     if (null == this.cells.get(0, sourceLength)
         || !this.goalBin.transitToGoal(this.cells.get(0, sourceLength), this.featureFunctions,
             this.sourceLength)) {
-      LOG.info("Input {}: Parse failure (either no derivations exist or pruning is too aggressive",
+      LOG.warn("Input {}: Parse failure (either no derivations exist or pruning is too aggressive",
           sentence.id());
       return null;
     }
@@ -655,7 +655,7 @@ public class Chart {
   // ===============================================================
 
   private void logStatistics() {
-    LOG.info("Input {}: Chart: added {} merged {} dot-items added: {}",
+    LOG.debug("Input {}: Chart: added {} merged {} dot-items added: {}",
         this.sentence.id(), this.nAdded, this.nMerged, this.nDotitemAdded);
   }
 

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/30b328b5/src/main/java/org/apache/joshua/decoder/chart_parser/ComputeNodeResult.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/joshua/decoder/chart_parser/ComputeNodeResult.java b/src/main/java/org/apache/joshua/decoder/chart_parser/ComputeNodeResult.java
index e691da6..084df13 100644
--- a/src/main/java/org/apache/joshua/decoder/chart_parser/ComputeNodeResult.java
+++ b/src/main/java/org/apache/joshua/decoder/chart_parser/ComputeNodeResult.java
@@ -78,7 +78,7 @@ public class ComputeNodeResult {
     // whatever costs we incur applying this rule to create a new hyperedge.
     float viterbiCost = 0.0f;
     LOG.debug("ComputeNodeResult():");
-    LOG.info("-> RULE {}", rule);
+    LOG.debug("-> RULE {}", rule);
 
     /*
      * Here we sum the accumulated cost of each of the tail nodes. The total cost of the new
@@ -88,8 +88,8 @@ public class ComputeNodeResult {
      */
     if (null != tailNodes) {
       for (HGNode item : tailNodes) {
-        LOG.info("-> item.bestedge: {}", item);
-        LOG.info("-> TAIL NODE {}", item);
+        LOG.debug("-> item.bestedge: {}", item);
+        LOG.debug("-> TAIL NODE {}", item);
         viterbiCost += item.bestHyperedge.getBestDerivationScore();
       }
     }