Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Is there a way to re-number the topic generated in Visualization? #213

Open
bloodteller123 opened this issue Jul 13, 2021 · 1 comment
Open

Comments

@bloodteller123
Copy link

The reason I'm asking this because the topics generated from LDA model are, for example, topic 0: school, topic 1: work, topic 2: emotion; however, the numbering of circles generated by pyLDAvis become: circle 0: work; circle 1: school, circle 2: emotion.

numbering of work and school is switched somehow.
Is there a way to fix the problem?

@oneextrafact
Copy link

Hi! In the call to prepare there's an argument for sort_topics. Set this to False to keep the order of your original LDA components.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants