Closed kushalc closed 5 years ago
I can reproduce your error with the code above. However, I don't think it's a Matcher
pickling issue. If you would keep the same nlp
object rather than constructing a new one, you wouldn't run into this, right?
Is there a recommended best practice for pickling nlp/Matcher between different processes? The fundamental use case we have to solve is serialization across different machines so we can't simply re-use the same nlp instance.
Kushal
On Thu, Jul 11, 2019 at 8:34 AM Sofie Van Landeghem < notifications@github.com> wrote:
I can reproduce your error with the code above. However, I don't think it's a Matcher pickling issue. If you would keep the same nlp object rather than constructing a new one, you wouldn't run into this, right?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/explosion/spaCy/issues/3494?email_source=notifications&email_token=AAAMMOUHRGYG5WXGP5W4HFTP65HH5A5CNFSM4HBV3CS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZXCYNA#issuecomment-510536756, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAMMOWGIE266T6BTKJRNBTP65HH5ANCNFSM4HBV3CSQ .
Is it an option to serialize the nlp
object (https://spacy.io/usage/saving-loading) ?
nlp1.to_disk("mynlp")
nlp2 = spacy.load("mynlp")
This issue has been automatically closed because there has been no response to a request for more information from the original author. With only the information that is currently in the issue, there's not enough information to take action. If you're the original author, feel free to reopen the issue if you have or find the answers needed to investigate further.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
https://github.com/explosion/spaCy/issues/1971 and https://github.com/explosion/spaCy/issues/3248 show that pickling works, but I'm still able to repro issues in 2.1.3.
Minimal Reproducible Example
Building off #3252 unit test:
(re-start Python)
Info about spaCy