Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm trying to use zeroshot topic model,but i encounter an error,Can anyone please help me?TypeError: BERTopic.__init__() got an unexpected keyword argument 'zeroshot_topic_list' #2025

Open
luyixiao31 opened this issue May 31, 2024 · 1 comment

Comments

@luyixiao31
Copy link

luyixiao31 commented May 31, 2024

my bertopic version is 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) #

TypeError: BERTopic.init() got an unexpected keyword argument 'zeroshot_topic_list'

@luyixiao31 luyixiao31 changed the title I'm trying to use zeroshot topiv model,but i encounter an error,Can you please help me?TypeError: BERTopic.__init__() got an unexpected keyword argument 'zeroshot_topic_list' I'm trying to use zeroshot topic model,but i encounter an error,Can you please help me?TypeError: BERTopic.__init__() got an unexpected keyword argument 'zeroshot_topic_list' May 31, 2024
@luyixiao31 luyixiao31 changed the title I'm trying to use zeroshot topic model,but i encounter an error,Can you please help me?TypeError: BERTopic.__init__() got an unexpected keyword argument 'zeroshot_topic_list' I'm trying to use zeroshot topic model,but i encounter an error,Can anyone please help me?TypeError: BERTopic.__init__() got an unexpected keyword argument 'zeroshot_topic_list' May 31, 2024
@MaartenGr
Copy link
Owner

my bertopic version is bertopicv0.16.2

Are you 100% sure that you are using v0.16.2? It is working for me in that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants