Command line utility to view, install, and upgrade spaCy models
Project description
spacy-model-manager
Command line utility to view, install, and upgrade spaCy models
Installation
The spacy-model-manager package requires Python 3.7 or newer, and can be installed from PyPI (Python Package Index). Installing with pip will automatically install all required dependencies. A selection of environments we have tested follows:
- Ubuntu 20.04LTS and later releases require build-essential, python3, python3-pip, and python3-venv packages
- macOS 11 (and newer) releases require Xcode 13 (or newer), Xcode CLI tools, and Python 3 installed using Homebrew (or your preferred method)
- Windows 10 and Windows 11 releases require Visual Studio Code, Build Tools for Visual Studio, and Python 3 installed using Anaconda 3 (or your preferred method)
We strongly recommend you create and activate a Python virtual environment prior to installing spacy-model-manager. With your environment configured and a Python virtual environment created and activated, run the following commands.
Make sure pip is upgraded to the latest version:
pip install --upgrade pip
Install spacy-model-manager:
pip install spacy-model-manager
CLI introduction
The spacy-model-manager CLI provides a command line interface to determine which spaCy models are currently installed, install additional models, and remove models. To see available commands, type:
(venv) user@host:~$ spacy-model -h
Model management
New spaCy releases are generally accompanied by newly trained models. Using different versions of models over the same collection may produce different results. Depending on your workflow and needs, you may wish to install earlier versions of models, upgrade models that were previously installed, or install multiple models. The spacy-model command assists with these tasks.
To see a list of available models, type:
(venv) user@host:~$ spacy-model list
To install an available model:
(venv) user@host:~$ spacy-model install en_core_web_sm
To install a specific version of an available model:
(venv) user@host:~$ spacy-model install en_core_web_sm --model-version 3.1.0
Note: requesting a model version that does not match the minor version of the spaCy package installed may result in dependency conflict messages and further errors. A request to install a specific version will replace any existing version of that model, even if the existing version is newer.
To remove an installed model:
(venv) user@host:~$ spacy-model remove en_core_web_sm
To upgrade an installed model:
(venv) user@host:~$ spacy-model upgrade en_core_web_sm
License(s)
Logos, documentation, and other non-software products of the CARASCAP team are distributed under the terms of Creative Commons 4.0 Attribution. Software items in CARASCAP repositories are distributed under the terms of the MIT License. See the LICENSE file for additional details.
© 2021, The University of North Carolina at Chapel Hill.
Development Team and Support
Developed by the CARASCAP team at the University of North Carolina at Chapel Hill.
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
Built Distribution
File details
Details for the file spacy-model-manager-0.1.3.tar.gz
.
File metadata
- Download URL: spacy-model-manager-0.1.3.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf41c1ffb5aad216e2dc951566825c6b2964af70b25fdf76943371c74540414 |
|
MD5 | 231dacf48ad44b9dc9f1c2abf945a984 |
|
BLAKE2b-256 | 581d3b46b347dc49e5d894089fd5e4c1d1a65605cea014c912d973da687a38eb |
File details
Details for the file spacy_model_manager-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: spacy_model_manager-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a6b6cb42553a049b05c6d4e3ea230cca4a87292dfe45fb4039be3f1d0236630 |
|
MD5 | 45807cd251fd52ec79a8f1f9e1d611a9 |
|
BLAKE2b-256 | b860937195e572a27fe8520bc2586a7015307aa0ee7c881d205640d6a2f398c4 |