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.

Model installation problem and wrong error message

See original GitHub issue

Hello there,

Thanks for this wonderful package. I am using Anaconda on a windows 64 machine, and I have a hard time installing it and using it. I ran

conda config --add channels conda-forge
conda install spacy

and I also ran python -m spacy.en.download all

Now, if I use the two-liner available on your website, I get an error

import spacy                         # See "Installing spaCy"
nlp = spacy.load('en')               # You are here.
doc = nlp(u'Hello, spacy!')          # See "Using the pipeline"
print((w.text, w.pos_) for w in doc) 

<generator object <genexpr> at 0x000000000F162678>

and

sentences = [s for s in doc.sents]
print(len(sentences))

gives

ValueError: sentence boundary detection requires the dependency parse, which requires data to be installed. If you haven't done so, run: 
python -m spacy.en.download all
to install the data

Any ideas? Thanks!!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
abbottLane-zzcommented, Apr 2, 2017

I’m seeing the exact same issue as @randomgambit . A workaround that I’ve found is to import the model like this:

import spacy
import en_core_web_sm

nlp = en_core_web_sm.load()
r = nlp(u'This is a sentence. This is another one. And this is a third, for good measure.' )
for s in r.sents:
    print(s)

-----------------------------------output----------------------
>>>This is a sentence.
>>>This is another one.
>>>And this is a third, for good measure.
1reaction
rmaxcommented, Apr 1, 2017

Could you show us the output of python -m spacy info in the console? And inside spyder, the output of the following code:

from spacy.cli import info
info()
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
If you receive an error message, enter the error message text into a search engine such as Bing or Google to locate troubleshooting...
Read more >
Sign in - YouTube
How to Fix Software Installation Error in Windows 10/8.1/7 Fail Can't Install.Registry Entry: msiexec /i "%1"Like any complex piece of ...
Read more >
Fixed: “There is a problem with this Windows installer package ...
In this article, you will learn how to fix the “There is a problem with this Windows installer package” error on Windows 10....
Read more >
Graphics Driver Installation Error: "Your system has a... - Intel
This issue most often occurs because the driver currently installed on the system is non-DCH. DCH driver 26.20.100.8141 or newer drivers will only...
Read more >
Troubleshoot Google Docs, Sheets, Slides & Forms error ...
If you get an error message such as "Something went wrong. ... you from making edits on your Docs, Slides, or Sheets, you...
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