-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
spacy.load should raise error if model not found #968
Comments
This was on an ubuntu 14.04 system with many other packages install. Doesn't happen on a fresh 16.04 so it's probably some kind of boring version skew. |
Thanks for updating after you debugged. I have that sort of problem with my Python environments a lot. The most common cause is if my Anyway. Relabelling this issue for a planned enhancement for v2. It's rubbish that the |
Yes, I agree – for now, it'd be nice to at least print a warning if For v2.0, we should maybe consider explicitly encouraging importing models as packages for the default use case: import en_core_web_sm
nlp = en_core_web_sm.load() From the feedback we got so far, it turned out that a lot of users now actually prefer this way of loading the models over |
Fixed in v1.8.0! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
E.g.
python -c 'import spacy; n = spacy.load("en_ansoteauhnotoheunatoheun")'
runs without errorI assume the tag and pos values are not all supposed to be empty/zero. BTW, I get the same result even if I use
nlp = spacy.load('en')
, but that may be some kind of misconfiguration from installing it carelessly.The text was updated successfully, but these errors were encountered: