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.

Spacy Basic Usage Error

See original GitHub issue

Using Spacy v1.1.2 the following code errors out

import spacy
en_nlp = spacy.load('en', parser=True)
en_doc = en_nlp(u'Hello, world. Here are two sentences.')

with an error

  File "/usr/local/lib/python2.7/site-packages/spacy/language.py", line 313, in __call__
    proc(doc)
TypeError: 'bool' object is not callable

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
rmanakcommented, Oct 4, 2017

spacy definitely needs better documentation for initiating the English class, looking at the source code (Language.__init__) the overrides kwargs implementation doesn’t help at all. It is not clear if default values are flags or objects of certain type. The big problem with SpaCy’s API is that it is hiding everything from the end-user (aka you just load this object, it does everything for you!) An expert NLP user would definitely wanna see easy interface to disable/enable taggers, parsers, vectors, entity etc… There is no example in the documentation about initiating the English class, except English() examples. This also makes it nearly impossible to inherit from the English class.

0reactions
lock[bot]commented, May 8, 2018

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

spaCy 101: Everything you need to know
spaCy is designed specifically for production use and helps you build applications that process and “understand” large volumes of text. It can be...
Read more >
How to resolve issues encountered when using spacy?
I have a training data (json) based from emails and extracted using tecoholic's ner-annotator. When trying to use the below for spacy and...
Read more >
Introducing spaCy v2.2
Version 2.2 of the spaCy Natural Language Processing library is leaner, cleaner and even more ... Here's a basic usage example: import spacy...
Read more >
Error when using data-to-spacy - done
However when I want to export the data with data-to-spacy I run into trouble. I'm providing a base-model, so that it'll use the...
Read more >
7. How to Train spaCy NER Model
In order to take advantage of the spaCy training process, the user need only understand a few basic concepts, such as how the...
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