bug?

Anand Venkataraman anand at speech.sri.com
Mon Jul 18 12:36:02 PDT 2005


Alexander,

No, the code is correct.  Let x = log_10 p.  Then
e^(x ln 10) = 10^x = p.

> inline Prob LogPtoProb(LogP2 prob)
> {
>     if (prob == LogP_Zero) {
>         return 0;
>     } else {
>     return exp(prob * M_LN10);
>     }
> }

&



More information about the SRILM-User mailing list