MaartenGr / MaartenGr/BERTopic

topics_over_time top terms less than top_n

Open
#1,521 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.8k
Forks
920
Avg merge
22h 24m
Merged PRs (30d)
5

Description

Hi,

I've noticed that when I call `topics_over_time` it generates topics with less than `top_n` representative terms. Initially I thought that this could be because very few documents were assigned to these topics, but I see that it happens with the topics with many documents in the time period as well.

Is there any way to know what causes this?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported topics_over_time behavior and inspect the generated representative terms for topics with different document counts. Determine what causes fewer than top_n terms, then document the cause or identify the required behavior and verify it with a focused regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.