I am trying to use Polyglot from inside Jupyter Notebook, but I am getting this weird error when I try to execute this sentence
from polyglot.text import Text
Full error message:
`ImportError Traceback (most recent call last)
<ipython-input-31-365fdab6978f> in <module>()
----> 1 from polyglot.text import Text
/usr/local/lib/python3.6/dist-packages/polyglot/text.py in <module>()
12 from polyglot.decorators import cached_property
13 from polyglot.downloader import Downloader
---> 14 from polyglot.load import load_embeddings, load_morfessor_model
15 from polyglot.mapping import CountedVocabulary
16 from polyglot.mixins import BlobComparableMixin, StringlikeMixin
/usr/local/lib/python3.6/dist-packages/polyglot/load.py in <module>()
15 from .decorators import memoize
16 from .downloader import downloader
---> 17 from .mapping import Embedding, CountedVocabulary, CaseExpander, DigitExpander
18
19 from .utils import _open
/usr/local/lib/python3.6/dist-packages/polyglot/mapping/__init__.py in <module>()
1 from .base import CountedVocabulary, OrderedVocabulary, VocabularyBase
----> 2 from .embeddings import Embedding
3 from .expansion import CaseExpander, DigitExpander
4
5 __all__ = ['CountedVocabulary',
/usr/local/lib/python3.6/dist-packages/polyglot/mapping/embeddings.py in <module>()
20
21 from .base import CountedVocabulary, OrderedVocabulary
---> 22 from ..utils import _open, _decode
23
24
ImportError: cannot import name '_decode'`
I am trying to use Polyglot from inside Jupyter Notebook, but I am getting this weird error when I try to execute this sentence
from polyglot.text import Text
Full error message: