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

Problems with model.visualize_topics() #533

Closed
mediote opened this issue May 6, 2022 · 4 comments
Closed

Problems with model.visualize_topics() #533

mediote opened this issue May 6, 2022 · 4 comments

Comments

@mediote
Copy link

mediote commented May 6, 2022

Topic number 0 does not appear when using topic model.visualize_topics(), however in model.get_topic_info(), it appears.
I'm using the latest version of BERTopic.

@MaartenGr
Copy link
Owner

Thank you for posting this! It seems that I intended to remove outliers in two places, which instead removes the first actual topic. I'll make sure to fix this in the next release!

@MaartenGr
Copy link
Owner

I just pushed the fix to the master branch, so you can get it already there! The next release might take a while but for now, you can get the most recent version there.

@mediote
Copy link
Author

mediote commented May 7, 2022

In that case, which will topic number indicate the outlier cluster?

@MaartenGr
Copy link
Owner

Typically, -1 represents the outlier cluster but the documents contained do not actually represent a topic or cluster. For the sake of simplicity, it was added as a topic but is not something that is easily interpretable. Therefore, it is excluded from the visualizations since it is actually not something that should be compared with the other topics.

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

2 participants