summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 19:20:12 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 19:20:12 +0000
commitd6adf213184e6bc427d6f4f072ca769bbd2e6881 (patch)
tree6da030bbf84083a1f6435164f130a6aaa35c4663
parent394d4a87322d0e97786dd367fb51c12ec2d77ffc (diff)
report features used in prelm pruning
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@137 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r--decoder/cdec.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/cdec.cc b/decoder/cdec.cc
index 4853adfb..c940fdac 100644
--- a/decoder/cdec.cc
+++ b/decoder/cdec.cc
@@ -353,7 +353,7 @@ int main(int argc, char** argv) {
if (nbyte==0)
prelm_ffs.push_back(p);
else
- cerr << "State required for feature: "<<ff<<" is "<<nbyte<<" - leaving it out of prelm pruning."<<endl;
+ cerr << "Excluding stateful feature from prelm pruning: "<<ff<<" - state is "<<nbyte<<" bytes."<<endl;
}
}
}
@@ -454,6 +454,7 @@ int main(int argc, char** argv) {
if (has_prelm_models) {
ModelSet prelm_models(prelm_feature_weights, prelm_ffs);
+ cerr << "Rescoring with rule probabilities and "<<prelm_ffs.size()<<" 0-state feature functions. +LM pass will use "<<late_ffs.size()<<" features."<<endl;
Timer t("prelm rescoring");
forest.Reweight(prelm_feature_weights);
forest.SortInEdgesByEdgeWeights();