Skip to content

Topics of a single document. #54

@RoelTim

Description

@RoelTim

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions