From 06aab77c7e9ffe46e7bf902fe5cd5e2d099c7609 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sun, 6 Mar 2011 19:42:21 -0500 Subject: track alignment info in copy constructor --- decoder/trule.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoder') diff --git a/decoder/trule.h b/decoder/trule.h index 6bffc277..7cd24bc9 100644 --- a/decoder/trule.h +++ b/decoder/trule.h @@ -23,7 +23,7 @@ struct AlignmentPoint { short t_; }; inline std::ostream& operator<<(std::ostream& os, const AlignmentPoint& p) { - return os << '(' << static_cast(p.s_) << '-' << static_cast(p.t_) << ')'; + return os << static_cast(p.s_) << '-' << static_cast(p.t_); } @@ -45,7 +45,7 @@ class TRule { e_(e), f_(f), lhs_(lhs), prev_i(-1), prev_j(-1) {} TRule(const TRule& other) : - e_(other.e_), f_(other.f_), lhs_(other.lhs_), scores_(other.scores_), arity_(other.arity_), prev_i(-1), prev_j(-1) {} + e_(other.e_), f_(other.f_), lhs_(other.lhs_), scores_(other.scores_), arity_(other.arity_), prev_i(-1), prev_j(-1), a_(other.a_) {} // if mono or strict is true, then lexer won't be used, and //FIXME: > 9 variables won't work explicit TRule(const std::string& text, bool strict = false, bool mono = false) : prev_i(-1), prev_j(-1) { -- cgit v1.2.3