Created
January 5, 2021 12:05
-
-
Save MaartenGr/8a603815ad93237a78179b50e6b24ba7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bertopic import BERTopic | |
model = BERTopic() | |
topics, probs = model.fit_transform(docs) | |
# Further reduce topics | |
new_topics, new_probs = model.reduce_topics(docs, topics, probs, nr_topics=30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment