diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-23 23:10:42 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-23 23:10:42 +0000 |
commit | a4d77fa601b9c34eb36baf06f5a59d2053015473 (patch) | |
tree | 08351ef8766346aa7ab982c32ca3a6399f4e2e97 /decoder/ff_factory.cc | |
parent | 5f9c85a6072d64b10879feafc040374e274027eb (diff) |
strip debug param from feature spec; debug info on from_fsa Init
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@394 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_factory.cc')
-rw-r--r-- | decoder/ff_factory.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/ff_factory.cc b/decoder/ff_factory.cc index cc07b2f2..5a207ea9 100644 --- a/decoder/ff_factory.cc +++ b/decoder/ff_factory.cc @@ -35,7 +35,8 @@ shared_ptr<FeatureFunction> FFRegistry::Create(const string& ffname, const strin int pl=debug_pre.size(); bool space=false; std::string p=param; - bool debug=match_begin(p,debug_pre)&&(p.size()==pl||(space=(p[pl]==' ')); + bool debug=match_begin(p,debug_pre)&& + (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"; |