Phrase probability smoothing can now be turned off in ug_bitext.cc by setting the confidence threshold to 0.

This commit is contained in:
Ulrich Germann 2014-06-27 01:07:23 +01:00
parent 40ab68b3d2
commit 9dfb354041

View File

@ -255,9 +255,10 @@ namespace Moses
float
lbop(size_t const tries, size_t const succ, float const confidence)
{
return
boost::math::binomial_distribution<>::
find_lower_bound_on_p(tries, succ, confidence);
return (confidence == 0
? float(succ)/tries
: (boost::math::binomial_distribution<>::
find_lower_bound_on_p(tries, succ, confidence)));
}
PhrasePair const&