From c32d7cf8f18319436d698e6e5a2c94bd2905b6b1 Mon Sep 17 00:00:00 2001 From: Huertas97 <56938752+Huertas97@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:50:37 +0200 Subject: [PATCH] Update installation of spacy models from hub spacy.md (#1422) The update in the way to install spacy models from the hub comes from how pip parse the URL to check pacage name and version. As it detect's "any" as version, it can raise an error. Adding the name of the package alongside the URL solve this. More info in this GitHub issue: https://github.com/explosion/spaCy/issues/13599 --- docs/hub/spacy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hub/spacy.md b/docs/hub/spacy.md index 810fa12e9..7c0638dfd 100644 --- a/docs/hub/spacy.md +++ b/docs/hub/spacy.md @@ -24,7 +24,7 @@ All models on the Hub come up with useful features All `spaCy` models from the Hub can be directly installed using pip install. ```bash -pip install https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl +pip install "en_core_web_sm @ https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl" ``` To find the link of interest, you can go to a repository with a `spaCy` model. When you open the repository, you can click `Use in spaCy` and you will be given a working snippet that you can use to install and load the model!