nateraw / Lda2vec-Tensorflow

Tensorflow 1.5 implementation of Chris Moody's Lda2vec, adapted from @meereeum
MIT License
107 stars 40 forks source link

spacy-related error #32

Closed gveni closed 5 years ago

gveni commented 5 years ago

I am getting the following error after running the preprocessing code provided. File "/nlppipe.py", line 41, in init self.nlp = spacy.load(nlp, disable = ['ner', 'tagger', 'parser']) File "/spacy/init.py", line 21, in load return util.load_model(name, **overrides) File "***/spacy/util.py", line 119, in load_model raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can't find model 'en_core_web_lg'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory. Any help would be appreciated

nateraw commented 5 years ago

I'm on mobile and walking right now so I cant link you, but you need to download the spacy model "en_core_web_lg" or any of their other models and pass whatever one you downloaded as a string to the nlp parameter. Check their site for more info

dbl001 commented 5 years ago

https://spacy.io/models/en

On Mar 7, 2019, at 3:57 PM, gveni notifications@github.com wrote:

en_core_web_lg

dbl001 commented 5 years ago

You have to download the Spacy model:

python -m spacy download en_core_web_lg

On Mar 7, 2019, at 3:57 PM, gveni notifications@github.com wrote:

I am getting the following error after running the preprocessing code provided. File "/nlppipe.py", line 41, in init self.nlp = spacy.load(nlp, disable = ['ner', 'tagger', 'parser']) File "/spacy/init.py", line 21, in load return util.load_model(name, overrides) File "*/spacy/util.py", line 119, in load_model raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can't find model 'en_core_web_lg'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory. Any help would be appreciated

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

gveni commented 5 years ago

Thanks a lot for all the prompt responses. I appreciate it! Worked!

nateraw commented 5 years ago

Thanks @dbl001 :smiley: