spaCy - Validate Command



As name implies, this command will find all the models installed in the current environment, packages as well as shortcut links, and check their compatibility with the current installed version of spaCy. It is recommended to run this command after upgrading spaCy.

The Validate command is as follows −

python -m spacy validate

The command will print the details about the compatibility of your installed models.

Example

An example for the validate command is stated below −

C:\Users\Leekha>python -m spacy validate

Output

Given below is the output of the code −

✔ Loaded compatibility table

====================== Installed models (spaCy v2.2.1) ======================
spaCy installation:
C:\Users\Leekha\Anaconda3\lib\site-packages\spacy

TYPE     NAME            MODEL           VERSION
package  en-core-web-sm  en_core_web_sm  2.2.0   ✔
package  en-core-web-md  en_core_web_md  2.2.0   ✔
spacy_command_line_helpers.htm
Advertisements