diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-07-28 17:08:59 +0100 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-07-28 17:08:59 +0100 |
commit | d92124ccc866192e4cdc689f2b41f0324d35dd3b (patch) | |
tree | f984116552c0f8b7cb0259f0d916685dfa623679 | |
parent | 02c47c31050505eacc2aa9a17e77214a7b456171 (diff) |
stuff
-rw-r--r-- | decoder/apply_models.cc | 6 |
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); } |