MaartenGr / MaartenGr/BERTopic

How to retrieve indexes of representative docs?

Open
#1,576 5 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 `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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.