Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory. #8

Open
khushi1503 opened this issue Jun 7, 2021 · 1 comment

Comments

@khushi1503
Copy link

Getting this error while running the example file also -

`---------------------------------------------------------------------------
OSError Traceback (most recent call last)
in
----> 1 convert(fname) # a copy of test0, without signature block

~\EmailParser-master\Parser.py in convert(fname, threshold)
11 fn = fname.split(".")
12 new_fname = fn[0] + "_clean." + fn[1]
---> 13 _generate_text(sentences, new_fname)
14
15 def _read_email(fname):

~\EmailParser-master\Parser.py in _generate_text(sentences, fname, threshold)
41 Lower thresholds will result in more false positives.
42 """
---> 43 tagger = spacy.load('en_core_web_sm')
44
45 with open(fname, "w") as new_file:

~\Anaconda3\lib\site-packages\spacy_init_.py in load(name, **overrides)
28 if depr_path not in (True, False, None):
29 warnings.warn(Warnings.W001.format(path=depr_path), DeprecationWarning)
---> 30 return util.load_model(name, **overrides)
31
32

~\Anaconda3\lib\site-packages\spacy\util.py in load_model(name, **overrides)
173 elif hasattr(name, "exists"): # Path or Path-like to model data
174 return load_model_from_path(name, **overrides)
--> 175 raise IOError(Errors.E050.format(name=name))
176
177

OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.`

@ashishb
Copy link

ashishb commented Sep 16, 2023

python -m spacy download en_core_web_sm

seem to fix it

Ref: https://spacy.io/api/cli#download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants