Error in sample code for BERTopic #13389
              
                Unanswered
              
          
                  
                    
                      JoeGermuska
                    
                  
                
                  asked this question in
                Help: Coding & Implementations
              
            Replies: 1 comment 3 replies
-
| @JoeGermuska I got something similar to work with the following: 
 | 
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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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_trfAfter 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-transformersNow, 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