Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to verify installed spaCy version?

Tags:

I have installed spaCy with python for my NLP project.

I have installed that using pip. How can I verify installed spaCy version?

using

pip install -U spacy 

What is command to verify installed spaCy version?

like image 993
Pramod S. Nikam Avatar asked Nov 17 '17 12:11

Pramod S. Nikam


People also ask

Where is spaCy models stored?

You can place the model data directory anywhere on your local file system. To use it with spaCy, simply assign it a name by creating a shortcut link for the data directory.

How do I install spaCy 2?

# make sure you are using recent pip/virtualenv versions python -m pip install -U pip virtualenv git clone https://github.com/explosion/spaCy cd spaCy virtualenv . env source . env/bin/activate pip install -r requirements. txt pip install -e .

How do I open a spaCy file?

To load a pipeline from a data directory, you can use spacy. load() with the local path. This will look for a config. cfg in the directory and use the lang and pipeline settings to initialize a Language class with a processing pipeline and load in the model data.


2 Answers

You can also do python -m spacy info. If you're updating an existing installation, you might want to run python -m spacy validate, to check that the models you already have are compatible with the version you just installed.

like image 111
syllogism_ Avatar answered Oct 08 '22 23:10

syllogism_


Use command - python -m spacy info to check spacy version

like image 41
pallavi Avatar answered Oct 08 '22 23:10

pallavi