MaartenGr / MaartenGr/BERTopic

Normalizing Topic Frequency Based on the Number of Documents

Open
#1,529 1 comment 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

Hi,

We have a similar number of daily documents in our application. We use BERTopic to create a 'topics over time' plot. When we create the model and plot in the first half of the month, topic frequency in the last month drops significantly compared to previous months. Waiting until month-end to create the model yields a more reasonable plot.

Do you recommend normalizing topic frequency by dividing it by the number of documents in the corresponding month? Your insights would be valuable.

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

No files, tests, or entry points are named. First inspect the topics-over-time plotting path and how topic frequency is calculated for each period. Done would require a decided normalization approach, documented expected behavior, and validation that plots remain comparable when the model is created before month-end.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.