diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-11 03:14:27 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-11 03:14:27 +0000 |
commit | d8f81c1ec7b19511bfb1ae77bfd8c225d1c2efab (patch) | |
tree | 2470535025dd90f21dc12da12c355968e8150e15 | |
parent | fd2fcc1ba58dcd385390b9cb0123868e4c59416e (diff) |
do not print NULL binarized cfg TRule
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@519 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-x | decoder/cfg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/cfg.cc b/decoder/cfg.cc index 147fa1a0..3ee3a94b 100755 --- a/decoder/cfg.cc +++ b/decoder/cfg.cc @@ -129,7 +129,7 @@ void CFG::PrintRule(std::ostream &o,RuleHandle rulei,CFGFormat const& f) const { f.print_rhs(o,*this,r.rhs.begin(),r.rhs.end()); f.print_features(o,r.p,r.f); #if CFG_DEBUG - o<<f.partsep<<*r.rule; + if (r.rule) o<<f.partsep<<*r.rule; #endif } |