kneser-ney
kneser-ney copied to clipboard
about the logprob
Just a question about the log prob calc in prob interpolation.
https://github.com/smilli/kneser-ney/blob/master/kneser_ney.py#L132
order[kgram] += last_order[suffix] + backoff[prefix]
The original interpolation is based on normal prob instead of log prob. It seems that the above log based interpolation doesn't make sense.
I agree. This seems to be a serious bug.