1
0
Fork
You've already forked topic-modeling-tutorial
0

Topic ids in pyLDAvis don't match topic IDs in gensim. #1

Closed
opened 2023年12月06日 13:35:38 +01:00 by StijnConix · 1 comment

The visualization with pyLDAvis uses different numbers for topics than gensim when I run the notebook, which makes it harder to interpret the results. Adding "sort_topics=False" in the following line solves it.

vis = gensimvis.prepare(models[4], corpus_matrix, corpus_dict, sort_topics=False)

The visualization with pyLDAvis uses different numbers for topics than gensim when I run the notebook, which makes it harder to interpret the results. Adding "sort_topics=False" in the following line solves it. `vis = gensimvis.prepare(models[4], corpus_matrix, corpus_dict, sort_topics=False)`

Thanks!

Thanks!
Commenting is not possible because the repository is archived.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cpence/topic-modeling-tutorial#1
Reference in a new issue
cpence/topic-modeling-tutorial
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?