MaartenGr / MaartenGr/BERTopic
How to retrieve indexes of representative docs?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.8k
- Forks
- 920
- Avg merge
- 22h 24m
- Merged PRs (30d)
- 5
Description
The `get_topic_info()` method returns a dataframe with the column `Representative_Docs`, in which we find the content of documents as strings. How can I link them back to the training set? Can I retrieve their index in the list of training documents?
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 examining the get_topic_info() method and how its Representative_Docs column is populated. Trace the representative document selection back to the training set, then determine how the original document indexes could be exposed alongside the returned strings. Done means users can reliably link each representative document to its training-set index.
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
- Mostly clear
- Newbie friendliness
- 38/100