mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Update version in examples [ci skip]
This commit is contained in:
parent
f873548f6c
commit
9c940eab94
|
@ -175,8 +175,8 @@ python -m spacy download en_core_web_sm
|
|||
python -m spacy download en
|
||||
|
||||
# pip install .tar.gz archive from path or URL
|
||||
pip install /Users/you/en_core_web_sm-2.1.0.tar.gz
|
||||
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz
|
||||
pip install /Users/you/en_core_web_sm-2.2.0.tar.gz
|
||||
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.0/en_core_web_sm-2.2.0.tar.gz
|
||||
```
|
||||
|
||||
### Loading and using models
|
||||
|
|
|
@ -106,7 +106,7 @@ python -m spacy download en_core_web_sm
|
|||
python -m spacy download en
|
||||
|
||||
# Download exact model version (doesn't create shortcut link)
|
||||
python -m spacy download en_core_web_sm-2.1.0 --direct
|
||||
python -m spacy download en_core_web_sm-2.2.0 --direct
|
||||
```
|
||||
|
||||
The download command will [install the model](/usage/models#download-pip) via
|
||||
|
@ -145,10 +145,10 @@ click on the archive link and copy it to your clipboard.
|
|||
|
||||
```bash
|
||||
# With external URL
|
||||
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz
|
||||
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.0/en_core_web_sm-2.2.0.tar.gz
|
||||
|
||||
# With local file
|
||||
pip install /Users/you/en_core_web_sm-2.1.0.tar.gz
|
||||
pip install /Users/you/en_core_web_sm-2.2.0.tar.gz
|
||||
```
|
||||
|
||||
By default, this will install the model into your `site-packages` directory. You
|
||||
|
@ -173,13 +173,13 @@ model data.
|
|||
|
||||
```yaml
|
||||
### Directory structure {highlight="7"}
|
||||
└── en_core_web_md-2.1.0.tar.gz # downloaded archive
|
||||
└── en_core_web_md-2.2.0.tar.gz # downloaded archive
|
||||
├── meta.json # model meta data
|
||||
├── setup.py # setup file for pip installation
|
||||
└── en_core_web_md # 📦 model package
|
||||
├── __init__.py # init for pip installation
|
||||
├── meta.json # model meta data
|
||||
└── en_core_web_md-2.1.0 # model data
|
||||
└── en_core_web_md-2.2.0 # model data
|
||||
```
|
||||
|
||||
You can place the **model package directory** anywhere on your local file
|
||||
|
@ -325,8 +325,8 @@ URLs.
|
|||
|
||||
```text
|
||||
### requirements.txt
|
||||
spacy>=2.0.0,<3.0.0
|
||||
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz#egg=en_core_web_sm
|
||||
spacy>=2.2.0,<3.0.0
|
||||
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.0/en_core_web_sm-2.2.0.tar.gz#egg=en_core_web_sm
|
||||
```
|
||||
|
||||
Specifying `#egg=` with the package name tells pip which package to expect from
|
||||
|
|
Loading…
Reference in New Issue
Block a user