-
-
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
Extension is not recognized when reloading spacy doc #4377
Comments
This is kind of expected – an extension attribute is a custom attribute registered on the global Registering attributes automatically on deserialization would be problematic, because it'd make it very difficult to deal with conflicting attributes from different docs (e.g. if one doc has attr A and another has attr B, would all docs now have A and b?). |
I see. Thanks. It would be great if I had this line in documentation (serialization section) . |
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. |
Hello,
custom extensions is not recognized when loading spacy doc object from disk. It does recognized it when the same kernal is active, however when restarting the kernal custom extensions are not recognized whereas other attributes are ok.
For example:
after shutting down (restarting) the kernel, I got this error:
Any idea why is that?
====================== Installed models (spaCy v2.2.1) ======================
ℹ spaCy installation:
anaconda3/envs/back/lib/python3.6/site-packages/spacy
TYPE NAME MODEL VERSION
package en-core-web-sm en_core_web_sm 2.2.0 ✔
package en-core-web-lg en_core_web_lg 2.2.0 ✔
The text was updated successfully, but these errors were encountered: