MaartenGr / MaartenGr/BERTopic

I found my topic reprensentation changed after using reduced outlier

Open
#1,638 2 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

I found the my topic representation changed from meaningful words(the topic I want to see) to the useless words(the, of, and...) after using the reduced outlier function.

code is look like this:
new_topics = topic_model.reduce_outliers(self.docs, topics, strategy="distributions")
topic_model.update_topics(self.docs, topics=new_topics)
representative_docs = topic_model.get_representative_docs()

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 with the reported calls to reduce_outliers, update_topics, and get_representative_docs, and reproduce the change using the example code and documents. Compare the topic representations before and after reduction and determine whether meaningful terms are lost; done means the behavior is explained and a focused regression test or fix is identified.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.