Replies: 1 comment 3 replies
-
I would advise using manual topic modeling instead. That allows you to use the topics you have created previously So essentially do this: from bertopic import BERTopic
from bertopic.cluster import BaseCluster
from bertopic.vectorizers import ClassTfidfTransformer
from bertopic.dimensionality import BaseDimensionalityReduction
# Prepare our empty sub-models and reduce frequent words while we are at it.
empty_dimensionality_model = BaseDimensionalityReduction()
empty_cluster_model = BaseCluster()
# Fit BERTopic without actually performing any clustering
topic_model= BERTopic(
embedding_model=MY_EMBEDDING_MODEL,
umap_model=empty_dimensionality_model,
hdbscan_model=empty_cluster_model,
)
topics, probs = topic_model.fit_transform(docs, y=MY_PREVIOUS_TOPICS) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Over the past 12 months, I have developed several bertopic models. Now I am facing issues with version compatibility.
For instance, I can't load the older version model(0.15.0) with new version(0.16.0).
My solution was to used old model's representation and created new model using guided model.
The question is if this is the right an approach? is there any better way to do it?
Beta Was this translation helpful? Give feedback.
All reactions