bug?

Alexandre Patry patryale at iro.umontreal.ca
Mon Jul 18 12:15:16 PDT 2005


Hi,

I began to use your excellent library and noticed that in prob.h, in the
functions similar to this one :

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

the base of the logarithm is changed via a multiplication.  From what I
understand of the function and of the logarithms
(http://en.wikipedia.org/wiki/Logarithm#Change_of_base), I think that a
division should be used instead.

Thank you,

Alexandre Patry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20050718/d9c79d8c/attachment.bin>


More information about the SRILM-User mailing list