MaartenGr / MaartenGr/BERTopic
Question about topics in topic_distribution
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.8k
- Forks
- 920
- Avg merge
- 22h 24m
- Merged PRs (30d)
- 5
Description
When I print out topic_info from the model (with get_topic_info()), there are a bunch of files in topic -1 which I want to filter out. I was going to do this by creating a mask with the topic_distrubution you get when running approximate_distribution() but the distribution_matrix seems to have 1 less topic columns when looking at the shape of topic_distribution. How can I find the documents that are "assigned" to topic -1?
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 with the get_topic_info() and approximate_distribution() entry points described in the issue, and compare how topic -1 is represented with the distribution_matrix columns. Check the relevant BERTopic documentation and implementation to determine how documents assigned to topic -1 can be identified; done means the mapping and filtering approach is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100