diff options
author | armatthews <armatthe@cmu.edu> | 2014-10-13 14:59:16 -0400 |
---|---|---|
committer | armatthews <armatthe@cmu.edu> | 2014-10-13 14:59:16 -0400 |
commit | cd7bc67f475fdfd07fba003ac4cca40e83944740 (patch) | |
tree | 39d7fd586b0f9f0e46e4af92d62f641e7405f47e | |
parent | f83b9538087ca0cdc8289184c1e3e87c70b52a8e (diff) |
Added alignment to pass through rules in t2s
-rw-r--r-- | decoder/tree2string_translator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); |