'cannot import name 'component' from 'spacy' (/usr/local/lib/python3.7/dist-packages/spacy/__init__.py)

I did the following installs:

pip install git+https://github.com/boudinfl/pke.git

and now I am getting this error:

ImportError                               Traceback (most recent call last)
<ipython-input-1-680c259694ed> in <module>()
----> 1 from spacy import component

ImportError: cannot import name 'component' from 'spacy' (/usr/local/lib/python3.7/dist-packages/spacy/__init__.py)

---------------------------------------------------------------------------

Any help would be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source