From 33dcd4ddadbebbf65be501dedfd87586f34b7e6a Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 23 Jul 2010 23:16:46 +0000 Subject: deterministic FF_FSA debug in constructor git-svn-id: https://ws10smt.googlecode.com/svn/trunk@395 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/ff_factory.cc | 2 +- decoder/ff_from_fsa.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/decoder/ff_factory.cc b/decoder/ff_factory.cc index 5a207ea9..aec82d38 100644 --- a/decoder/ff_factory.cc +++ b/decoder/ff_factory.cc @@ -39,7 +39,7 @@ shared_ptr FFRegistry::Create(const string& ffname, const strin (p.size()==pl || (space=(p[pl]==' '))); if (debug) { p.erase(0,debug_pre.size()+space); - cerr<<"debug enabled for "<second->Create(p); res->name=ffname; diff --git a/decoder/ff_from_fsa.h b/decoder/ff_from_fsa.h index 51d89376..75b99f52 100755 --- a/decoder/ff_from_fsa.h +++ b/decoder/ff_from_fsa.h @@ -28,6 +28,7 @@ class FeatureFunctionFromFsa : public FeatureFunction { typedef WordID const* WP; public: FeatureFunctionFromFsa(std::string const& param) : ff(param) { + debug=true; // because factory won't set until after we construct. FSAFFDBG(ff.name()<<" params="<