Could not find function 'spacy.MultiHashEmbed.v1' in function registry 'architectures' #8831
-
I'm upgrading to spacy to 3.1.1 from 3.0.5 and creating a new executable using pyinstaller. This time when I run the exe I get this error when loading the model file. I was able to successfully create a pyinstaller exe from 3.0.5 and load models from it just fine.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi, check that you've included |
Beta Was this translation helpful? Give feedback.
-
I think I have it working now. There was nothing wrong with the pyinstaller exe. I think the problem was that I used the config from version 3.0.5 to train the 3.1.1 models, so to fix I updated the config file using the command
However it still didn't change the MultiHashEmbed to v2 so I manually changed it to v2 in the config. I was then able to load the model using the pyinstaller exe I created. |
Beta Was this translation helpful? Give feedback.
Hi, check that you've included
spacy-legacy>=3.0.7
? Actually because of bug fixesspacy-legacy>=3.0.8
would be better, but v3.0.7 is when this particular architecture was moved from the core library tospacy-legacy
.