topicrankpy
topicrankpy copied to clipboard
ModuleNotFoundError: No module named 'pke'
Received the following error on using it
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-19-01fbd239b3d2> in <module>()
----> 1 from topicrankpy import extractinformation as t
/usr/local/lib/python3.6/dist-packages/topicrankpy/__init__.py in <module>()
1 from __future__ import absolute_import
2
----> 3 from pke.data_structures import Candidate, Document, Sentence
4 from pke.readers import MinimalCoreNLPReader, RawTextReader
5 from pke.base import LoadFile
ModuleNotFoundError: No module named 'pke'
Install this: pip install git+https://github.com/boudinfl/pke.git
Don't forget to add:
python -m nltk.downloader stopwords python -m nltk.downloader universal_tagset python -m spacy download en # download the english model
Having spacy installed of course...