dipanjanS/practical-machine-learning-with-python

Easier way to download "en_vectors_web_lg" model in spacy

Anacoder1 opened this issue · 1 comments

The procedure for downloading the "en_vectors_web_lg" in spacy. by downloading and unzipping the file, and shifting it to the appropriate directory, as illustrated here is long and cumbersome.

Instead of the above procedure, we could simply do the following to load the model:

import spacy
import spacy.cli
spacy.cli.download("en_vectors_web_lg")
nlp = spacy.load('en_vectors_web_lg')