Top2Vec icon indicating copy to clipboard operation
Top2Vec copied to clipboard

How to reduce the number of topcis

Open yananma1029 opened this issue 1 year ago • 1 comments

Hi I'd like to know how to reduce the number of topics. Is there any function in top2vec that I can use?

yananma1029 avatar Apr 06 '23 17:04 yananma1029

if you say reduce topics in trainng step, you need to adjust hyperparameter of UMAP and HDBSCAN used in Top2Vec Model I think,

if you want to merge topics in a trained model, just use hierarchical_topic_reduction function, it will find topic with smallest size and merge it with its nearst topic untill to the number of topics you want.

Vela-zz avatar Apr 08 '23 00:04 Vela-zz