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
commitd92124ccc866192e4cdc689f2b41f0324d35dd3b (patch)
treef984116552c0f8b7cb0259f0d916685dfa623679 /decoder
parent02c47c31050505eacc2aa9a17e77214a7b456171 (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);
}