From 8c6536c56c728213b9e1190f0c9f76f7b4948140 Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 23 Jul 2010 02:27:28 +0000 Subject: bottom-up FF from fsa FF - WordPenaltyFsa - needs debugging git-svn-id: https://ws10smt.googlecode.com/svn/trunk@373 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/apply_models.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoder/apply_models.cc') diff --git a/decoder/apply_models.cc b/decoder/apply_models.cc index 0e83582f..2b518d62 100644 --- a/decoder/apply_models.cc +++ b/decoder/apply_models.cc @@ -96,7 +96,7 @@ struct Candidate { if (is_goal) { assert(tail.size() == 1); const string& ant_state = node_states[tail.front()]; - models.AddFinalFeatures(ant_state, &out_edge_); + models.AddFinalFeatures(ant_state, &out_edge_, smeta); } else { models.AddFeaturesToEdge(smeta, out_hg, node_states, &out_edge_, &state_, &edge_estimate); } @@ -344,7 +344,7 @@ struct NoPruningRescorer { if (is_goal) { assert(tail.size() == 1); const string& ant_state = node_states_[tail.front()]; - models.AddFinalFeatures(ant_state, new_edge); + models.AddFinalFeatures(ant_state, new_edge,smeta); } else { prob_t edge_estimate; // this is a full intersection, so we disregard this models.AddFeaturesToEdge(smeta, out, node_states_, new_edge, &head_state, &edge_estimate); -- cgit v1.2.3