From d92124ccc866192e4cdc689f2b41f0324d35dd3b Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 28 Jul 2011 17:08:59 +0100 Subject: stuff --- decoder/apply_models.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3