Download and load spaCy models on-the-fly.
Project description
Download and load spaCy models on-the-fly
A tiny drop-in replacement for spacy.load()
that automatically downloads a model when it is not currently installed.
Usage is identical to spacy.load()
, meaning that you can also exclude
or disable pipeline components. Example:
from spacy_download import load_spacy
nlp = load_spacy("en_core_web_sm", exclude=["parser", "tagger"]) # Will download the model if it isn't installed yet
Under the hood, the package makes use of spaCy's capability to import models as modules, rather than using spaCy's
built-in loader. This allows us to first download a model with pip
and then load it as a module.
Note: if you are using transformer models, you still need to install spacy-transformers
yourself!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spacy_download-1.0.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for spacy_download-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a48393627131676b3442a2b34e98063f8114b3a0ba1b932b57709a32f024ad2 |
|
MD5 | e6e679f52543a89b328739e63d81d001 |
|
BLAKE2b-256 | acaa6b79ec58e3a21a3a47c30070ef09aa0e5dbc472983b8445315ebdc66db10 |