diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-23 23:16:46 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-23 23:16:46 +0000 |
commit | c4eac4b98cb147c6949d655e1e137687a4f38690 (patch) | |
tree | 98d2c147a1a23f2d75cb4b21a8c8bef66696b81a /decoder | |
parent | a1454f4992b2b64c3fd51cba52abee43fafda85e (diff) |
deterministic FF_FSA debug in constructor
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@395 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/ff_factory.cc | 2 | ||||
-rwxr-xr-x | decoder/ff_from_fsa.h | 1 |
2 files changed, 2 insertions, 1 deletions
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<FeatureFunction> 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 "<<ffname<< " - rest of param='"<<p<<"'\n"; + cerr<<"debug enabled for "<<ffname<< " - remaining options: '"<<p<<"'\n"; } res = it->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="<<param<<" calling Init: "); Init(); } |