BERTopic
BERTopic copied to clipboard
topics_over_time top terms less than top_n
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?
The number of representative terms is fixed in topics_over_time to minimize the compute overhead when calculating n representations, one for each timestamp. You could change it yourself by updating the internal topics_over_time function. I believe those values are hardcoded.