diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-06 19:42:21 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-06 19:42:21 -0500 |
commit | 06aab77c7e9ffe46e7bf902fe5cd5e2d099c7609 (patch) | |
tree | 7b86c4cbf6331654b55bf464d42640c2265036dd /decoder | |
parent | d695ee6573ad3b37952ef930b1608c9227dfe6f7 (diff) |
track alignment info in copy constructor
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/trule.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<int>(p.s_) << '-' << static_cast<int>(p.t_) << ')'; + return os << static_cast<int>(p.s_) << '-' << static_cast<int>(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) { |