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

LogLikelihood #8

Open
gabrer opened this issue Jun 6, 2017 · 2 comments
Open

LogLikelihood #8

gabrer opened this issue Jun 6, 2017 · 2 comments

Comments

@gabrer
Copy link

gabrer commented Jun 6, 2017

Hi askerlee!

I would ask you if the logLikelihood computed by "calcLoglikelihood" function is normalised by the number of words in the corpus?
If not, it could be easily done?

Thank you!

@askerlee
Copy link
Owner

askerlee commented Jun 7, 2017

It's not normalized by the document length (i.e. the number of words in a document). You could divide it by the document length to get the average (log) perplexity.

@gabrer
Copy link
Author

gabrer commented Jun 8, 2017

So, I need only to divide it by the document length, great!

Thank you for your prompt reply!

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

2 participants