From ebbc74b76ac31db44e04e735b19b0119bc822d92 Mon Sep 17 00:00:00 2001 From: graehl Date: Mon, 5 Jul 2010 19:13:43 +0000 Subject: 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 --- decoder/cdec.cc | 9 +++++++-- 1 file 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: "<