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

JSON serializable with gensim's TFIDF matrix #2

Open
husseinkohy opened this issue Dec 5, 2016 · 0 comments
Open

JSON serializable with gensim's TFIDF matrix #2

husseinkohy opened this issue Dec 5, 2016 · 0 comments

Comments

@husseinkohy
Copy link

Hi,
I have a gnsim LDA model based on a TFIDF matrix. When I call "pyLDAvis.display" I get the following error.

"TypeError: 0j is not JSON serializable"

this error is not raised when I prepare the data:
pyLDAvis.gensim.prepare
or
pyLDAvis.utils.html_id_ok(pyLDAvis.utils.get_id(pyLDAvis.gensim.prepare))

similar issue is raised but a solution is not provided (bmabey/pyLDAvis#69). also, when I do not use a tfidf matrix I am able to display the results as expected.

thank you

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

1 participant