-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
get_document_topics returns and empty list #2306
Comments
Hi @senjed What does |
Hi, |
@senjed |
it worked thanks! I am closing the issue. |
I trained the lda model and want to get topic distribution for a new document. However, for some documents the get_document_topics function returns and empty list and I get this warning:
/home/anaconda2/lib/python2.7/site-packages/gensim/models/ldamodel.py:676: RuntimeWarning: overflow encountered in divide
gammad = self.alpha + expElogthetad * np.dot(cts / phinorm, expElogbetad.T)
This is the way I call the function:
The text was updated successfully, but these errors were encountered: