summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarmatthews <armatthe@cmu.edu>2014-10-13 14:59:16 -0400
committerarmatthews <armatthe@cmu.edu>2014-10-13 14:59:16 -0400
commite51da099233df0a384b04fe5908b30e44040d13e (patch)
tree7b23d5b19e438eb66ccef6394a6715f5a3ad650d
parent2f1e7056cd12468581376d4c9bada7b8eef971be (diff)
Added alignment to pass through rules in t2s
-rw-r--r--decoder/tree2string_translator.cc1
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);