topicrankpy icon indicating copy to clipboard operation
topicrankpy copied to clipboard

ModuleNotFoundError: No module named 'pke'

Open Jheel-patel opened this issue 5 years ago • 3 comments

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'

Jheel-patel avatar Dec 07 '20 20:12 Jheel-patel

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

rjadr avatar Jan 25 '21 13:01 rjadr

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

zepef avatar May 17 '21 13:05 zepef

Having spacy installed of course...

zepef avatar May 17 '21 13:05 zepef