Skip to content

recover topics from saved model #762

Answered by MaartenGr
aminathshausan asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on the version of BERTopic you are using. If you are using v0.12, then you would not need to pass topics at all. However, if you are using an earlier version, I believe it would suffice to get those topics by running

topics = topic_model._map_predictions(topic_model.hdbscan_model.labels_)

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@aminathshausan
Comment options

@MaartenGr
Comment options

@aminathshausan
Comment options

@MaartenGr
Comment options

@aminathshausan
Comment options

Answer selected by aminathshausan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants