Error in sample code for BERTopic #13389
Unanswered
JoeGermuska
asked this question in
Help: Coding & Implementations
Replies: 1 comment 1 reply
-
@JoeGermuska I got something similar to work with the following:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to run the sample code on the BERTopic page. I'll be honest that I don't really know what I'm doing
One error I ran into, which I was able to solve, is that it appears to need a different pipeline. The sample code has
which needed to be changed to
en_core_web_trf
After that, I got an error,
Can't find factory for 'curated_transformer' for language English
, which led me to realize that I needed to installspacy-curated-transformers
Now, when
topics, probs = topic_model.fit_transform(docs)
is invoked, I getthat's where I got stuck, and started looking at other approaches. But it seems like it would be good for sample code to be runnable as much as possible.
Beta Was this translation helpful? Give feedback.
All reactions