diff options
author | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-06-13 14:42:07 +0200 |
---|---|---|
committer | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-06-13 14:42:07 +0200 |
commit | dcba237fdda20cb32a5d9890c3beae790db446c2 (patch) | |
tree | b09846c7ed1ea3c0f13748ed13ce49efeca7fecc /decoder/hg.cc | |
parent | d86299e31deb81a836b1b2f2a356a6f4b28eda9e (diff) | |
parent | 34c2c129a376abfc79e76cf2fa1282b89ef605b6 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'decoder/hg.cc')
-rw-r--r-- | decoder/hg.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/decoder/hg.cc b/decoder/hg.cc index 0dcbe91f..dd272221 100644 --- a/decoder/hg.cc +++ b/decoder/hg.cc @@ -13,6 +13,7 @@ #include "viterbi.h" #include "inside_outside.h" #include "tdict.h" +#include "verbose.h" using namespace std; @@ -330,9 +331,9 @@ bool Hypergraph::PruneInsideOutside(double alpha,double density,const EdgeMask* const int plen = ViterbiPathLength(*this); vector<WordID> bp; rnum = min(rnum, static_cast<unsigned>(density * plen)); - cerr << "Density pruning: keep "<<rnum<<" of "<<edges_.size()<<" edges (viterbi = "<<plen<<" edges)"<<endl; + if (!SILENT) cerr << "Density pruning: keep "<<rnum<<" of "<<edges_.size()<<" edges (viterbi = "<<plen<<" edges)"<<endl; if (rnum == edges_.size()) { - cerr << "No pruning required: denisty already sufficient\n"; + if (!SILENT) cerr << "No pruning required: denisty already sufficient\n"; if (!use_beam) return false; use_density=false; |