-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
nlp.to_disk() throwing TypeError: __init__() got an unexpected keyword argument 'encoding' #2810
Comments
I get the same error but in my case it is the spacy.displacy.render() function:
It seems that the error comes from util.py with the last three commits about this encoding: https://github.com/explosion/spaCy/commits/master/spacy/util.py But there is no explanation for the deletion and restoring?! |
Current workaround: The issue is that The best solution until Thinc updates with a new version is to pin to a previous version of |
This should be fixed in the latest release of spaCy / Thinc! For the upcoming version |
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. |
How to reproduce the behaviour
I was following the example here to train my own NER model https://github.com/explosion/spaCy/blob/master/examples/training/train_ner.py and I got the following error with the stack trace:
Your Environment
My
pip list
returnsAny ideas why my
to_disk()
throwing this error?The text was updated successfully, but these errors were encountered: