Issues packaging Spacy 3.0.6 (en_core_web_sm.load()) #5896
-
I have an application that uses spacy and was able to resolve this issue with an older version of spacy from help I found online. The hook files and hidden imports from old posts do not solve work for this version. In particular my exe is not able to run en_core_web_sm.load() after importing spacy and en_core_web_sm. I am thinking this has to do with spacy_legacy architectures and not being found and resolved. I could be wrong. I seeing if anyone has gotten spacy 3.0.6 to work in an exe in the last few months. File "en_core_web_sm_init_.py", line 11, in load Available names: spacy.CharacterEmbed.v2, spacy.EntityLinker.v1, spacy.HashEmbedCNN.v2, spacy.MaxoutWindowEncoder.v2, spacy.MishWindowEncoder.v2, spacy.MultiHashEmbed.v2, spacy.PretrainCharacters.v1, spacy.PretrainVectors.v1, spacy.Tagger.v1, spacy.TextCatBOW.v1, spacy.TextCatCNN.v1, spacy.TextCatEnsemble.v2, spacy.TextCatLowData.v1, spacy.Tok2Vec.v2, spacy.Tok2VecListener.v1, spacy.TorchBiLSTMEncoder.v1, spacy.TransitionBasedParser.v1, spacy.TransitionBasedParser.v2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Have you tried collecting submodules and metadata for For the reference, the following program # program.py
import spacy
from spacy.lang.en.examples import sentences
nlp = spacy.load("en_core_web_sm")
doc = nlp(sentences[0])
print(doc.text)
for token in doc:
print(token.text, token.pos_, token.dep_) requires the following PyInstaller (4.3) command-line on linux:
where adding the last two switches fixed the missing |
Beta Was this translation helpful? Give feedback.
Have you tried collecting submodules and metadata for
spacy_legacy
?For the reference, the following program
requires the following PyInstaller (4.3) command-line on linux: