Skip to content

Issues packaging Spacy 3.0.6 (en_core_web_sm.load()) #5896

Answered by rokm
JimMcDonough asked this question in Help
Discussion options

You must be logged in to vote

Have you tried collecting submodules and metadata for spacy_legacy?

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:

pyinstaller --clean --noconfirm program.py \
--hidden-import srsly.msgpack.util \
--hidden-import cymem \
--hidden-import cymem.cymem \
--hidden-import preshed.maps \
--collect-submodules thinc \
--collect-data thinc \
--collect-submodules blis \
--collect-submodules spacy \
--collect-data spacy \
--collect-subm…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JimMcDonough
Comment options

@JimMcDonough
Comment options

@DarkSoliditi
Comment options

Answer selected by JimMcDonough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants