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 | e5ef74a308f9fc2d131481214325a26ca1a895dc (patch) | |
tree | 7ea1d84a75f74e53caf6f6080eca2308b1db27ec | |
parent | bcaf442eac7088a68256f0a3a5d249999dd1d18c (diff) |
track alignment info in copy constructor
-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) { |