diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-05 19:13:43 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-05 19:13:43 +0000 |
commit | 394d4a87322d0e97786dd367fb51c12ec2d77ffc (patch) | |
tree | b30e9ce44e7216646811091462aab674c0e771a2 | |
parent | 9de6972ed09e642a39d892aacca444a1bbb52422 (diff) |
report features excluded from prelm pruning because they have state
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@136 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r-- | decoder/cdec.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/decoder/cdec.cc b/decoder/cdec.cc index 62e28bbc..4853adfb 100644 --- a/decoder/cdec.cc +++ b/decoder/cdec.cc @@ -348,8 +348,13 @@ int main(int argc, char** argv) { // TODO check that multiple features aren't trying to set the same fid pffs.push_back(pff); late_ffs.push_back(p); - if (p->NumBytesContext()==0) - prelm_ffs.push_back(p); + if (has_prelm_models) { + int nbyte=p->NumBytesContext(); + if (nbyte==0) + prelm_ffs.push_back(p); + else + cerr << "State required for feature: "<<ff<<" is "<<nbyte<<" - leaving it out of prelm pruning."<<endl; +} } } ModelSet late_models(feature_weights, late_ffs); |