summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-03-22 16:48:28 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2011-03-22 16:48:28 -0400
commit3ffb9a6573fc59b25ad28885234f1fc921dae51c (patch)
treece6badde2076540811a9f4d49805e1371bd587aa
parentdd83d3cff60ddcb49b184927b7ea2ba1214d50eb (diff)
reweight after weight pushing to avoid weird output
-rw-r--r--decoder/decoder.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/decoder.cc b/decoder/decoder.cc
index 89425198..ac063659 100644
--- a/decoder/decoder.cc
+++ b/decoder/decoder.cc
@@ -821,6 +821,7 @@ bool DecoderImpl::Decode(const string& input, DecoderObserver* o) {
forest.edges_[i].feature_values_.set_value(rp.fid_summary, log_prob_transition);
}
+ forest.Reweight(cur_weights); // reset weights
}
}