MaartenGr / MaartenGr/BERTopic
Disable warning for update_topics()
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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