MaartenGr / MaartenGr/BERTopic

Disable warning for update_topics()

Open
#1,964 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
920
Avg merge
22h 24m
Merged PRs (30d)
5

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the update_topics() entry point and tracing where the quoted warning is emitted. Determine how warning suppression is handled there and define a way to disable this message without affecting unrelated warnings; done means users can update topics without the warning appearing when they explicitly choose to suppress it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.