I am trying to find a way to load the downloaded en_core_web_lg ==2.3.1
for Spacy == 2.3.2
.
Steps:
tar
filepath
Code:
import spacy
nlp=spacy.load("path/en_core_web_lg")
Error:
OSERROR: [E053] Could not read meta.json from en_core_web_lg/meta.json
Any suggestions will be helpful
The .tar.gz
is a python package, not just a model directory, so you probably need to look one level deeper and load en_core_web_lg/en_core_web_lg-2.3.1
. You can tell by looking for the directory that contains the subdirectories vocab
, tagger
, ner
, etc.