mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
Phrase probability smoothing can now be turned off in ug_bitext.cc by setting the confidence threshold to 0.
This commit is contained in:
parent
40ab68b3d2
commit
9dfb354041
@ -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&
|
||||
|
Loading…
Reference in New Issue
Block a user