Re-training BERTopic Model #1735
-
Hii, Currently i have a running BERTopic model. The model works fine for 3 months until recently there are new patterns that not yet to be learn by the existing categories. I want this existing categories to learn this new pattern without adding or removing any current categories. So i re-trained this model by just fit_transform the additional data train to the current model. But after i do that, the topic name no longer represent the said topic number. For example: before the changes, topic number 8 is about cars, but after i do that, the said topic number 8 is now about animal. Is there any way to make the topic name consistent? or there is other way that i should try for retraining my model. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That is exactly what You can train a new topic model and merge it with your existing model. |
Beta Was this translation helpful? Give feedback.
That is exactly what
.merge_models
is for: https://maartengr.github.io/BERTopic/getting_started/merge/merge.htmlYou can train a new topic model and merge it with your existing model.