Major bug fix in setting ug_bitext::jstats.my_cnt2.

This commit is contained in:
Ulrich Germann 2014-06-03 15:48:27 +01:00
parent 8c9a26a3be
commit 9cda39f802

View File

@ -117,7 +117,8 @@ namespace Moses
boost::lock_guard<boost::mutex> lk(this->lock); boost::lock_guard<boost::mutex> lk(this->lock);
my_rcnt += 1; my_rcnt += 1;
my_wcnt += w; my_wcnt += w;
my_cnt2 += cnt2; // my_cnt2 += cnt2; // could I really be that stupid? [UG]
my_cnt2 = cnt2;
if (a.size()) if (a.size())
{ {
size_t i = 0; size_t i = 0;
@ -231,6 +232,7 @@ namespace Moses
sample2 = 0; sample2 = 0;
good1 = ps.good; good1 = ps.good;
good2 = 0; good2 = 0;
raw2 = 0;
fvals.resize(numfeats); fvals.resize(numfeats);
} }