From 14bd9d89a3fea6a36bd0fe651ef43035f0a90d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sun, 11 Feb 2024 19:46:43 +0100 Subject: [PATCH] Update example that shows model in requirments (#13302) See #13293. --- website/docs/usage/models.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/docs/usage/models.mdx b/website/docs/usage/models.mdx index 3b8a5fa3f..7fed9f407 100644 --- a/website/docs/usage/models.mdx +++ b/website/docs/usage/models.mdx @@ -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