https://github.com/rtmigo/spacy_installer_py
Installing and removing spaCy language models from Python code, without using the command line
https://github.com/rtmigo/spacy_installer_py
install nlp pip python spacy uninstall
Last synced: 3 months ago
JSON representation
Installing and removing spaCy language models from Python code, without using the command line
- Host: GitHub
- URL: https://github.com/rtmigo/spacy_installer_py
- Owner: rtmigo
- License: mit
- Created: 2022-01-04T19:42:13.000Z (over 3 years ago)
- Default Branch: staging
- Last Pushed: 2022-01-13T06:05:17.000Z (over 3 years ago)
- Last Synced: 2025-01-21T15:32:13.435Z (5 months ago)
- Topics: install, nlp, pip, python, spacy, uninstall
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](#)
[](#)# [spacy_installer](https://github.com/rtmigo/spacy_installer_py)
Installing and removing [spaCy](https://spacy.io/) language models from Python
code, without using the command line.## Install this package
```bash
$ pip3 install git+https://github.com/rtmigo/spacy_installer_py#egg=spacy_installer
```## Install spacy model
```python3
import spacy_installer# load pre-installed model or install and load
model = spacy_installer.load_model('en_core_web_sm')
```Or, install without loading.
```python3
import spacy_installer# load pre-installed model or install and load
spacy_installer.install_model('en_core_web_sm')
```## Uninstall spacy models
```python3
import spacy_installerspacy_installer.uninstall_model('en_core_web_sm')
```Uninstall all models installed by the installer:
```python3
import spacy_installerspacy_installer.uninstall_all_models()
```