From 65a47d21082deb41aceb6516212568408bddaeac Mon Sep 17 00:00:00 2001 From: graehl Date: Sun, 25 Jul 2010 20:33:06 +0000 Subject: being ensuring edge debug info is copied when apply_models - new hg.AddEdge methods git-svn-id: https://ws10smt.googlecode.com/svn/trunk@409 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/apply_models.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoder/apply_models.cc') diff --git a/decoder/apply_models.cc b/decoder/apply_models.cc index 11d43e93..77d35c92 100644 --- a/decoder/apply_models.cc +++ b/decoder/apply_models.cc @@ -336,7 +336,7 @@ struct NoPruningRescorer { Hypergraph::TailNodeVector tail(arity); for (int i = 0; i < arity; ++i) tail[i] = nodemap[in_edge.tail_nodes_[i]][tail_iter[i]]; - Hypergraph::Edge* new_edge = out.AddEdge(in_edge.rule_, tail); + Hypergraph::Edge* new_edge = out.AddEdge(in_edge, tail); new_edge->feature_values_ = in_edge.feature_values_; new_edge->i_ = in_edge.i_; new_edge->j_ = in_edge.j_; -- cgit v1.2.3