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
commitcd7bc67f475fdfd07fba003ac4cca40e83944740 (patch)
tree39d7fd586b0f9f0e46e4af92d62f641e7405f47e
parentf83b9538087ca0cdc8289184c1e3e87c70b52a8e (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);