diff options
| author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-07-28 18:35:11 -0400 | 
|---|---|---|
| committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-07-28 18:35:11 -0400 | 
| commit | 16d0e2a34df3e32e8992aeda3ad2de7a6e525f14 (patch) | |
| tree | b7fb0f5b0de309a08ba1bde504ed9067e1aabaa3 /decoder/trule.cc | |
| parent | b81b2e85bdfd5e9dda98a6e448e6354ca0c6d26b (diff) | |
slight improvement to the way NTs are handled in the FST-CFG composition algorithm, new rescoring mode
Diffstat (limited to 'decoder/trule.cc')
| -rw-r--r-- | decoder/trule.cc | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/decoder/trule.cc b/decoder/trule.cc index 187a003d..896f9f3d 100644 --- a/decoder/trule.cc +++ b/decoder/trule.cc @@ -237,9 +237,9 @@ void TRule::ComputeArity() {  string TRule::AsString(bool verbose) const {    ostringstream os;    int idx = 0; -  if (lhs_ && verbose) { +  if (lhs_) {      os << '[' << TD::Convert(lhs_ * -1) << "] |||"; -  } +  } else { os << "NOLHS |||"; }    for (unsigned i = 0; i < f_.size(); ++i) {      const WordID& w = f_[i];      if (w < 0) { | 
