MaartenGr / MaartenGr/BERTopic
Preserving custom labels with BERTopic.merge_models()
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.8k
- Forks
- 920
- Avg merge
- 22h 24m
- Merged PRs (30d)
- 5
Description
Hey @MaartenGr , is it possible to preserve custom labels from two separate topic models when merging them? I want to be able to identify the specific topics from model 1 and model 2 that are retained in the merged model. Thanks!
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 BERTopic.merge_models() and reading how topics are selected and represented during a merge. Determine how custom labels from each source model could remain associated with retained topics, then verify that the merged model identifies each topic's originating model and label.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100