Cannot deserialize model: mismatched structure #10041
-
Following @DuyguA 's book mastering spacey (with some 3.0 tweaks):
Having saved the EntityRecognizer with it's own (from TrainablePipe inherited) to_disk, I assume it should be possible to load it as well:
however fails:
I'm rather sure the issue lies with thinc rather than with TrainablePipe, but I'm too much of a newbie. Any suggestions are highly appreceated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
any answer |
Beta Was this translation helpful? Give feedback.
-
Hi sorry for leaving this unreplied! I think this is really a spaCy issue rather than a Thinc issue. I think it's a matter of |
Beta Was this translation helpful? Give feedback.
Hi sorry for leaving this unreplied!
I think this is really a spaCy issue rather than a Thinc issue. I think it's a matter of
nlp.create_pipe()
creating the component with different config from what theen_core_web_md
saved model has. But you should take this up on the spaCy discussions (as I do think it's a usage question rather than a bug) to be sure.