Skip to content
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

Bad probability calculations for the first word in a sentence #2

Open
peturorri opened this issue Jul 19, 2022 · 2 comments
Open

Bad probability calculations for the first word in a sentence #2

peturorri opened this issue Jul 19, 2022 · 2 comments

Comments

@peturorri
Copy link
Member

When calculating the trigram probability of the first word in a sentence the returned value is the frequency of the trigram plus one, instead of the actual probability. Example:

In [96]: ng.prob("", "", "Í")
Out[96]: 595124.0000000003

In [97]: ng.freq("", "", "Í")
Out[97]: 595123
@sveinbjornt
Copy link
Member

@vthorsteinsson Er að fara að gefa út nýja útgáfu, er þetta e-ð sem þú nennir að skoða áður en það gerist?

@vthorsteinsson
Copy link
Member

Já, vissi ekki af þessu, myndi vilja kíkja á fyrir útgáfu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants