mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
Major bug fix in setting ug_bitext::jstats.my_cnt2.
This commit is contained in:
parent
8c9a26a3be
commit
9cda39f802
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user