Views
No views yet
1from bertopic import BERTopic
2
3# Load the model from Hugging Face
4topic_model = BERTopic.load("aablaess/amazon-bertopic")
5
6# Predict topics for new reviews
7docs = ["The coffee tastes great but the packaging was damaged.", "My dog absolutely loves this food!"]
8topics, probs = topic_model.transform(docs)