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 | 26542e63701322640fd72ce8e080e08ec43e26fd (patch) | |
tree | 193e5c5cb0fc326de1769803b52ecd72645f6351 | |
parent | 4cc6cfa3ac7d0a4ed90c594e9c013f18997a3f20 (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; |