Replies: 2 comments
-
Sure, you can do it as follows. First, make sure that during topic_model = BERTopic(
embedding_model=embedding_model,
low_memory=True,
min_topic_size=TOPIC_SIZE,
top_n_words=20,
nr_topics="auto",
verbose=True,
vectorizer_model=CountVectorizer(stop_words="english"),
umap_model=umap_model,
).fit(MY_DOCS) Then, you can update the model with the representation model(s) like so: topic_model.update_topics(
MY_DOCS,
representation_model=representation_model,
vectorizer_model=CountVectorizer(stop_words="english")
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm running BertTopic with no_topics="auto"
and it seems like representation is happening twice:
Is it possible to trigger representation will only after topic reduction (should save some time )
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions