summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 19:13:43 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 19:13:43 +0000
commitebbc74b76ac31db44e04e735b19b0119bc822d92 (patch)
tree3f737faeb01e5cc9864116d8b8b742573aed4ec2
parente43fe3326d456d4339297453e593072792a34930 (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.cc9
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);