You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The reason for that is two-fold
1. Spacy's CLI wasn't matured yet at the time of the book's release
2. Sometimes for proxy and other internal environments the CLI download
also might fail sometime.
However in regular environments, it's definitely a better approach to
follow as long is it works.
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')
The text was updated successfully, but these errors were encountered: