diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-06 17:59:01 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-06 17:59:01 -0500 |
commit | bcaf442eac7088a68256f0a3a5d249999dd1d18c (patch) | |
tree | 12af610b3427fb669aba93dc847087e6c967c618 /decoder/trule.cc | |
parent | 51be265cdd0f2f65a2ff64bab7d5b03773e8b635 (diff) |
print word alignments in rule
Diffstat (limited to 'decoder/trule.cc')
-rw-r--r-- | decoder/trule.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/decoder/trule.cc b/decoder/trule.cc index eedf8f30..9820e6d5 100644 --- a/decoder/trule.cc +++ b/decoder/trule.cc @@ -272,6 +272,11 @@ string TRule::AsString(bool verbose) const { } if (!scores_.empty() && verbose) { os << " ||| " << scores_; + if (!a_.empty()) { + os << " |||"; + for (int i = 0; i < a_.size(); ++i) + os << ' ' << a_[i]; + } } return os.str(); } |