From e51da099233df0a384b04fe5908b30e44040d13e Mon Sep 17 00:00:00 2001 From: armatthews Date: Mon, 13 Oct 2014 14:59:16 -0400 Subject: Added alignment to pass through rules in t2s --- decoder/tree2string_translator.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/decoder/tree2string_translator.cc b/decoder/tree2string_translator.cc index 08dae64c..cdd83ffc 100644 --- a/decoder/tree2string_translator.cc +++ b/decoder/tree2string_translator.cc @@ -267,6 +267,7 @@ struct Tree2StringTranslatorImpl { for (auto sym : rule_src) cur = &cur->next[sym]; TRulePtr rule(new TRule(rhse, rhsf, lhs)); + rule->a_.push_back(AlignmentPoint(0, 0)); rule->ComputeArity(); rule->scores_.set_value(ntfid, 1.0); rule->scores_.set_value(kFID, 1.0); -- cgit v1.2.3