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

I'm not able to use the '.add_pipe' attribute #51

Closed
MotorCityCobra opened this issue Apr 30, 2018 · 2 comments
Closed

I'm not able to use the '.add_pipe' attribute #51

MotorCityCobra opened this issue Apr 30, 2018 · 2 comments
Labels
usage General usage

Comments

@MotorCityCobra
Copy link

MotorCityCobra commented Apr 30, 2018

>>> nlp.add_pipe(s2v)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'English' object has no attribute 'add_pipe'

Is it called something else now?

@ines ines added the usage General usage label Apr 30, 2018
@ines
Copy link
Member

ines commented Apr 30, 2018

Looks like you might be using an older version of spaCy – the new custom pipeline components all require v2.x. (You can check your spaCy version by running python -m spacy info on the command line.)

If you need to upgrade from v1.x to v2.x, see this guide for more details. I'd also recommend using a fresh (virtual) environment for the new installation!

@MotorCityCobra
Copy link
Author

MotorCityCobra commented Apr 30, 2018

That 'python -m space info' command didn't work.

I found this solution for checking the module's version.

$ python
>>> import spacy
>>> import pkg_resources
>>> pkg_resources.get_distribution("spacy").version
'0.101.0'  

Thanks for the diagnosis. I'll follow your link and get the newer version.
I'll assume that will fix it and close the issue.

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

No branches or pull requests

2 participants