Skip to content

Commit

Permalink
Update example that shows model in requirments (#13302)
Browse files Browse the repository at this point in the history
See #13293.
  • Loading branch information
danieldk committed Feb 12, 2024
1 parent 0c46b69 commit c39596a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions website/docs/usage/models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -526,13 +526,17 @@ application's `requirements.txt`. If you're running your own internal PyPi
installation, you can upload the pipeline packages there. pip's
[requirements file format](https://pip.pypa.io/en/latest/reference/requirements-file-format/)
supports both package names to download via a PyPi server, as well as
[direct URLs](#pipeline-urls).
[direct URLs](#pipeline-urls). For instance, you can specify the
`en_core_web_sm` model for spaCy 3.7.x as follows:

```text {title="requirements.txt"}
spacy>=3.0.0,<4.0.0
en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.4.0/en_core_web_sm-3.4.0-py3-none-any.whl
en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl
```

See the [list of models](https://spacy.io/models) for model download links for
the current spaCy version.

All pipeline packages are versioned and specify their spaCy dependency. This
ensures cross-compatibility and lets you specify exact version requirements for
each pipeline. If you've [trained](/usage/training) your own pipeline, you can
Expand Down

0 comments on commit c39596a

Please sign in to comment.