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 | 33dcd4ddadbebbf65be501dedfd87586f34b7e6a (patch) | |
tree | 4c128c03ab96ebeee798f1d6e389681f1515810c /decoder | |
parent | a4d77fa601b9c34eb36baf06f5a59d2053015473 (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(); } |