From bcaf442eac7088a68256f0a3a5d249999dd1d18c Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sun, 6 Mar 2011 17:59:01 -0500 Subject: print word alignments in rule --- decoder/trule.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'decoder') 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(); } -- cgit v1.2.3