我的bertopic版本是bertopicv0.16.2
TypeError Traceback (most recent call last)
Cell In[162], line 57
55 keybert_model = KeyBERTInspired()
56 # build BERTopic
---> 57 topic_model = BERTopic(
58 embedding_model=embedding_model,
59 vectorizer_model=vectorizer_model,
60 # umap_model=umap_model,
61 # hdbscan_model=hdbscan_model,
62 zeroshot_topic_list = zeroshot_topic_list,
63 # seed_topic_list=seed_topic_list,
64 # representation_model=keybert_model
68 # #
69 topics, probs = topic_model.fit_transform(docs, embeddings=embeddings) #
1条答案
按热度按时间wqsoz72f1#
我的bertopic版本是bertopicv0.16.2。你确定你使用的是v0.16.2吗?我在那个版本上运行正常。