diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-06 16:24:00 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-06 16:24:00 +0000 |
commit | 6a26a0246e53effd0217ea1443ffbd2e76aae205 (patch) | |
tree | 49b2c4a7e9ff680a7d0da5cc38c35503df4aabec | |
parent | 018a9f9feb6f432fb24e7a44908f165dc405ac05 (diff) |
log density prune
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@152 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r-- | decoder/hg.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/hg.cc b/decoder/hg.cc index 11dd6f44..7fc9643d 100644 --- a/decoder/hg.cc +++ b/decoder/hg.cc @@ -204,6 +204,7 @@ void Hypergraph::DensityPruneInsideOutside(const double scale, const int plen = ViterbiPathLength(*this); vector<WordID> bp; int rnum = min(static_cast<int>(edges_.size()), static_cast<int>(density * static_cast<double>(plen))); + cerr << "Density pruning: keep "<<rnum<<" of "<<edges_.size()<<" edges (viterbi = "<<plen<<" edges)"<<endl; if (rnum == edges_.size()) { cerr << "No pruning required: denisty already sufficient"; return; |