Is spacy.cli.download.download public API? #9733
Replies: 3 comments 14 replies
-
The For this purpose, the main difference between stanza models and spacy models is that spacy models are separate python packages rather than just downloaded directories. Detecting which packages are currently installed in a python environment is expensive, so it's done once when a python script starts and if you install a model package in a running python process, it won't be found by |
Beta Was this translation helpful? Give feedback.
-
Downloading and installing won't happen in the same process. However, we have a different wrinkle: we are mounting the models into a docker container. Which means we need to a) tell pip to install into a custom directory, b) tell |
Beta Was this translation helpful? Give feedback.
-
@adrianeboyd just chiming in to let you know that modifying |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
At work we wrap spacy and stanza in one codebase that provides uniform setup/access to models from both libraries. Part of this uniform access is downloading the models.
We're currently downloading Stanza models from inside Python and we'd like to do the same for spacy models. We're aware that this isn't exactly recommended by the docs, but we choose this option knowingly due to some other constraints.
Question
Can we import and invoke
spacy.cli.download.download
to perform the download? Afaict it's essentially a wrapper aroundpip install
while taking care of some book-keeping. It also appears pretty stable based on commit history.Beta Was this translation helpful? Give feedback.
All reactions