Deploying to Heroku
See original GitHub issueIs it possible to download the data from running spacy.en.download in a particular directory and have spacy use that directory? Would it be bad practice to commit this data to source control?
Background Info:
We are deploying an application to Heroku that relies on Spacy for some NLP work. We are having some trouble getting Spacy to work properly once it is deployed to Heroku because the Spacy data needs to be downloaded. We have tried logging into bash on Heroku by running heroku run bash
and then running python -m spacy.en.download all
from the remote machine. We tested that this actually installed the data by running a python interpreter and we are able to instantiate English()
properly. However, when we use our web app it fails. Heroku logs show that it is failing because Spacy throws an exception saying that we should run python -m spacy.en.download
.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top GitHub Comments
@perdix This is addressed and explained here: https://github.com/explosion/spaCy/issues/1099#issuecomment-306053749
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.