question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
import kindred

trainCorpus = kindred.bionlpst.load('2016-BB3-event-train')
devCorpus = kindred.bionlpst.load('2016-BB3-event-dev')
predictionCorpus = devCorpus.clone()
predictionCorpus.removeRelations()
classifier = kindred.RelationClassifier()
classifier.train(trainCorpus)
classifier.predict(predictionCorpus)
f1score = kindred.evaluate(devCorpus, predictionCorpus, metric='f1score')

When I try to run the code above, I get the following error:

Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “C:\Users\SC\Anaconda3\lib\site-packages\kindred\RelationClassifier.py”, line 76, in train parser = kindred.Parser(model=self.model) File “C:\Users\SC\Anaconda3\lib\site-packages\kindred\Parser.py”, line 33, in init Parser.models[model] = spacy.load(model, disable=[‘ner’]) File "C:\Users\SC\Anaconda3\lib\site-packages\spacy_init.py", line 30, in load return util.load_model(name, **overrides) File “C:\Users\SC\Anaconda3\lib\site-packages\spacy\util.py”, line 175, in load_model raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can’t find model ‘en’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory.

How can I solve this problem?

Your Environment

  • Operating System: Windows10
  • Python Version Used: python3.7.4
  • spaCy Version Used: 2.3.2
  • kindred Version Used: 2.7.1
  • Environment Information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mkw18commented, Aug 9, 2020

Thank you! Maybe I can try to install it again.

0reactions
github-actions[bot]commented, Nov 2, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSError: [E050] Can't find model 'de'. It doesn't seem to be a ...
It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory. Everywhere, an explanation is...
Read more >
[Solved] OSError: [E050] Can't find model 'en'. It doesn't seem ...
OSError : [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to...
Read more >
OSError: Can't find model 'en' · Issue #1 - GitHub
error: OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to...
Read more >
OSError: [E050] Can't find model 'en'. It doesn't seem to be a ...
OSError : [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to...
Read more >
Spacy E050 Can't find model 'en core web sm' Solved
[ E050 ] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found