diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-22 16:48:28 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-22 16:48:28 -0400 |
commit | 12ece6ddfa91ec61cdeee698db2c7edac941e096 (patch) | |
tree | 6bdba46c29b169550789dfd42e8eee0dc43bd395 /decoder | |
parent | c0ae6f362b245ccf2ab3b8d6dc7e367cbcc64c1c (diff) |
reweight after weight pushing to avoid weird output
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/decoder.cc | 1 |
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 } } |