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 | e51da099233df0a384b04fe5908b30e44040d13e (patch) | |
tree | 7b23d5b19e438eb66ccef6394a6715f5a3ad650d | |
parent | 2f1e7056cd12468581376d4c9bada7b8eef971be (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); |