From 00be683d744ea87e67dd13db08e4a17531bfb1f3 Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 23 Jul 2010 19:17:22 +0000 Subject: sparse_vector use google::dense_hash_map, fsa scan logging git-svn-id: https://ws10smt.googlecode.com/svn/trunk@383 ec762483-ff6d-05da-a07a-a48fb63a330f --- extools/mr_stripe_rule_reduce.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extools') diff --git a/extools/mr_stripe_rule_reduce.cc b/extools/mr_stripe_rule_reduce.cc index 8332a106..0be1834d 100644 --- a/extools/mr_stripe_rule_reduce.cc +++ b/extools/mr_stripe_rule_reduce.cc @@ -87,7 +87,7 @@ void DoPhraseMarginals(const vector& key, const bool bidir, ID2RuleStati it->second.counts.set_value(cur_marginal_id, tot); // prevent double counting of the joint - if (cur_marginal_id == kCE) it->second.counts.clear_value(kCFE); + if (cur_marginal_id == kCE) it->second.counts.erase(kCFE); } } -- cgit v1.2.3