diff options
author | Patrick Simianer <p@simianer.de> | 2014-07-04 13:32:22 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-07-04 13:32:22 +0200 |
commit | 49671a7f685eb364f7735f4bbda0c05a2dbfe76c (patch) | |
tree | ac4a20c1e1112ccf8e2f7b61ea66ca31152ac9c0 /decoder/tree2string_translator.cc | |
parent | 48027e9eeebda4f8506c00ff259fb3426149f85b (diff) | |
parent | d124d4aaa78b52b46f7ac8d7306be342d3405124 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'decoder/tree2string_translator.cc')
-rw-r--r-- | decoder/tree2string_translator.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/decoder/tree2string_translator.cc b/decoder/tree2string_translator.cc index c9c91a37..adc8dc89 100644 --- a/decoder/tree2string_translator.cc +++ b/decoder/tree2string_translator.cc @@ -332,7 +332,9 @@ struct Tree2StringTranslatorImpl { assert(tail.size() == r->Arity()); HG::Edge* new_edge = hg.AddEdge(r, tail); new_edge->feature_values_ = r->GetFeatureValues(); - // TODO: set i and j + auto& inspan = input_tree.nodes[s.task.input_node_idx].span; + new_edge->i_ = inspan.first; + new_edge->j_ = inspan.second; hg.ConnectEdgeToHeadNode(new_edge, &hg.nodes_[node_id]); } for (const auto& n : s.future_work) { |