MaartenGr / BERTopic

Leveraging BERT and c-TF-IDF to create easily interpretable topics.
https://maartengr.github.io/BERTopic/
MIT License
5.97k stars 747 forks source link

AttributeError: type object 'BERTopic' has no attribute 'merge_models' though in the documentation, there has merge_models #1916

Open random-annoym opened 5 months ago

random-annoym commented 5 months ago

Here, https://maartengr.github.io/BERTopic/api/bertopic.html#bertopic._bertopic.BERTopic.merge_models has a way to combine topic models. But it is not working throwing error.

MaartenGr commented 4 months ago

You should use the latest version of BERTopic for that (v0.16). Then it will work!

MaartenGr commented 4 months ago

Also, check out the full tutorial on how to use it here: https://maartengr.github.io/BERTopic/getting_started/merge/merge.html