-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Multiprocessing error #21
Comments
Seems to be related to explosion/spaCy#5220. A quick workaround is to change only the first line: This should do the trick as it will call I will look into a proper fix soon, hopefully. |
Great,
Thanks a lot.
Kind regards,
Dimitar
…On Mon, 11 May 2020, 09:26 asajatovic, ***@***.***> wrote:
Seems to be related to explosion/spaCy#5220
<explosion/spaCy#5220>.
A quick workaround is to change only the first line:
nlpD = spacy_udpipe.load(lang).tokenizer.
This should do the trick as it will call UDPipeTokenizer.pipe
<https://github.com/TakeLab/spacy-udpipe/blob/master/spacy_udpipe/language.py#L141-L158>(creating
a Doc with the same attributes as Language.pipe, just bug-free). If you
want to use custom pipes afterward, you could call them on the resulting
Doc objects (once created, these are modified in-place anyway), for now.
I will look into a proper fix soon, hopefully.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYLMEXDL7HYJFCEDFQEN6DRQ6ZCPANCNFSM4M5KSOXA>
.
|
The issue happens with Interestingly, when the same Unfortunately, neither multithreading nor UDPipeTokenizer multiprocessing speeds up execution. |
Thanks. |
@dimitarsh1 you are welcome. |
Related: on the most recent version of spacy_udpipe, Should I make a separate issue for this? Might be difficult to solve this one, though, and perhaps impossible if you have no control over the UDPipe model directly.
|
Hi @BramVanroy, thanks for reporting. This should be fixed by #39 soon. |
Awesome! Thanks. |
When running the spacy_udpipe with the n_process = X enabled, it gives an error.
The code I run is:
The error is:
When I run the same code, but without the n_process argument, then everything is fine. No errors, the text is processed and so on.
It seems to be related to a spaCy issue, but I couldn't find a solution.
https://stackoverflow.com/questions/60152152/spacy-issue-with-vocab-or-stringstore
spaCy version: 2.2.4
python version: 3.8.3
spacy-udpipe version: 0.3.0
OS: debian 10
Thanks.
Cheers,
Dimitar
The text was updated successfully, but these errors were encountered: