Since recently I have been getting this error whenever I run my notebook:
ModuleNotFoundError: No module named 'pytextrank'
Here is the link to my notebook: https://colab.research.google.com/github/neomatrix369/awesome-ai-ml-dl/blob/master/examples/better-nlp/notebooks/jupyter/better_nlp_summarisers.ipynb#scrollTo=-dJrJ54a3w8S
Although checks show that the library is installed, python import fails - I have had this once in a different scenario and fixed it using:
python -m pip install pytextrank
But this does not have any impact, the error still persists.
This wasn't a problem in the past and the same notebook worked well - I think it might be a regression.
Any thoughts? Any useful feedback will be highly appreciated.
Here is the code that I invoke:
import pytextrank
import sys
import networkx as nx
import pylab as plt
And I get this in the colab cell:
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data] Unzipping corpora/stopwords.zip.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-7f30423e40f2> in <module>()
3 sys.path.insert(0, './awesome-ai-ml-dl/examples/better-nlp/library')
4
----> 5 from org.neomatrix369.better_nlp import BetterNLP
1 frames
/content/awesome-ai-ml-dl/examples/better-nlp/library/org/neomatrix369/summariser_pytextrank.py in <module>()
----> 1 import pytextrank
2 import sys
3 import networkx as nx
4 import pylab as plt
5
ModuleNotFoundError: No module named 'pytextrank'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.