Hello,
I'm "reusing" code for smoothing from the consolidate tool in one of my 
projects and I've noticed that there might be a small bug in Kneser-Ney 
discounting implementation:

if (kneserNeyFlag) {
...
if (countEF < 2) D = kneserNey_D1;
if (countEF < 3) D = kneserNey_D2;
      ...
}

Shouldn't the second if clause rather be an else-if?

Cheers,
Ceslav

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to