MaartenGr/BERTopic

Disable warning for update_topics()

Opened this issue · 1 comments

The following warning is generated whenever I'm updating my topics with update_topics() after outlier reduction:

BERTopic - WARNING: Using a custom list of topic assignments may lead to errors if topic reduction techniques are used afterwards. Make sure that manually assigning topics is the last step in the pipeline.Note that topic embeddings will also be created through weightedc-TF-IDF embeddings instead of centroid embeddings.

As stated in the warning my last step is to update the topics but I don't want this message to spam my script outputs. Am I doing something wrong or how can i disable the warnings?

You could temporarily set topic_model.verbose = False if you want to suppress this specific or you could disable logging during initialization to disable the warnings.