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

Topics of a single document. #54

Open
RoelTim opened this issue Dec 4, 2020 · 0 comments
Open

Topics of a single document. #54

RoelTim opened this issue Dec 4, 2020 · 0 comments

Comments

@RoelTim
Copy link

RoelTim commented Dec 4, 2020

Can I also run topSBM on a single document?

I am not interested in how topics are distributed over different documents. I just simply want to extract the main topics per document.

I know that the pd.DataFrame(model.groups_[1]['p_tw_d'], columns=titles) gives a matrix with how much each topic correspond per document, but this topic is based on words from all the documents....

Any suggestions?

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