-
Notifications
You must be signed in to change notification settings - Fork 0
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
TypeError: pipe() got an unexpected keyword argument 'n_threads' #1
Comments
I think |
COOL!!! It works. |
I encountered this same error now when using lda2vec-tensorflow (by nateraw) in this part of the code: `Initialize a preprocessor Run the preprocessing on your dataframe Here is the specific error: TypeError: pipe() got an unexpected keyword argument 'n_threads' ` How can I repair this if the typo error is within the package? I tried to downgrade my Spacy version in my conda environment to Spacy=2.3.7, but I encountered a lot of conflicts with the other packages. How to edit the "n_threads" in lda2vec nlppipe? Thank you in advance! :) |
Hello,
I gave up such technology, sorry.
***@***.***
PeilinYang
Beijing University of Posts and Telecommunications
Underradute/College of Computer Science and Technology
北京邮电大学/本科生/计算机学院
***@***.******@***.***>
***@***.******@***.***>
18801347498
Beijing
…________________________________
发件人: tinltan ***@***.***>
发送时间: Friday, October 15, 2021 11:28:02 AM
收件人: soniacq/TextExplorer ***@***.***>
抄送: yang-peilin ***@***.***>; Comment ***@***.***>
主题: Re: [soniacq/TextExplorer] TypeError: pipe() got an unexpected keyword argument 'n_threads' (#1)
I encountered this same error now when using lda2vec-tensorflow (by nateraw) in this part of the code:
`Initialize a preprocessor
P = Preprocessor(df, "texts", max_features=30000, maxlen=10000, min_count=30)
Run the preprocessing on your dataframe
P.preprocess()`
Here is the specific error:
`~.conda\envs\env4\lib\site-packages\lda2vec\nlppipe.py`` in tokenize_and_process(self)
61 print("\n---------- Tokenizing Texts ----------")
62 # Iterate over all uncleaned documents
---> 63 for i, doc in tqdm(enumerate(self.nlp.pipe(texts, n_threads=4))):
64 # Variable for holding cleaned tokens (to be joined later)
65 doc_texts = []
TypeError: pipe() got an unexpected keyword argument 'n_threads' `
How can I repair this if the typo error is within the package?
I tried to downgrade my Spacy version in my conda environment to Spacy=2.3.7, but I encountered a lot of conflicts with the other packages. How to edit the "n_threads" in lda2vec nlppipe?
Thank you in advance! :)
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATEMMSMQ2FMG5PC5RRDAOI3UG6NUFANCNFSM4YHKOEEQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
TypeError is happening in an internal code that invokes
nlp.pipe
from the Spacy library. The error happens in linefor idx, doc in enumerate(nlp.pipe(texts, n_threads=16, batch_size=100)):
, and removingn_threads=16
seems to make it work in the spacy version that I'm using.Spacy version:
The text was updated successfully, but these errors were encountered: