summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 03:14:27 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 03:14:27 +0000
commit90b9ca8b746333f4a47231c244b841f134417706 (patch)
treebab796d6a5baa81ca97eb7acf03e5860ec4a1e19
parent2f932b8c4141cebdbda89c76cbb3d52137dc3fec (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-xdecoder/cfg.cc2
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
}