-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird result using NgramModel.prob() function. #380
Comments
Hello - I would not be surprised if this is due to the issue I raised here: #367. That issue is with the backoff calculation, and perhaps you can confirm that when you call |
Hello, Thanks for mentioning issue #367. That's right, it's the same but the other comments you made on it don't seem to be correct. In the same code, check this: print model.prob('in', ['areas', 'will']) The output is: 3.18247596154 |
@copper-head would you please confirm if this issue is current? |
@stevenbird This can now be closed, we have a regression test for it. |
In the code below:
The resulted outout is: 3.03175480769 which is impossible since it is a probability and should be below 1. I have encountered many same issues when checking the probabilities of stopwords more often.
Thanks.
MOLi
The text was updated successfully, but these errors were encountered: