summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-07-28 17:08:59 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2011-07-28 17:08:59 +0100
commitd73b5d25bd0af14a4a83490d67ba2553b6af9884 (patch)
treefc9aff5d9f9f993c78c7e5f78621d7806bbbde9c /decoder
parent004d7447341b938efdec9223f899cf67f6b0dd86 (diff)
stuff
Diffstat (limited to 'decoder')
-rw-r--r--decoder/apply_models.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/decoder/apply_models.cc b/decoder/apply_models.cc
index 62eff262..26cdb881 100644
--- a/decoder/apply_models.cc
+++ b/decoder/apply_models.cc
@@ -190,8 +190,12 @@ public:
if (num_nodes > 100) every = 10;
assert(in.nodes_[pregoal].out_edges_.size() == 1);
if (!SILENT) cerr << " ";
+ int has = 0;
for (int i = 0; i < in.nodes_.size(); ++i) {
- if (!SILENT && i % every == 0) cerr << '.';
+ if (!SILENT) {
+ int needs = (50 * i / in.nodes_.size());
+ while (has < needs) { cerr << '.'; ++has; }
+ }
if (strategy_==NORMAL_CP){
KBest(i, i == goal_id);
}