question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors importing from pytextrank

See original GitHub issue

Hi! I’m working on a project connected with NLP and was happy to find out that there is such a tool as PyTextRank. However, I’ve encountered an issue at the very beginning trying to just import package to run the example code given here. The error that I get is the following:

----> from pytextrank import json_iter, parse_doc, pretty_print
ImportError: cannot import name 'json_iter'
----> from pytextrank import parse_doc
ImportError: cannot import name 'parse_doc'

I’ve tried running it in iPython console and a Jupyter Notebook, both the same result. I’ve installed PyTextRank with pip, the python version that I have is 3.5.4., spacy 2.1.8., networkx 2.4, graphvis 0.13.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
cetericommented, Mar 9, 2020

Hi @neomatrix369 , we seem to have resolved that in release 2.0.1 now available on https://pypi.org/project/pytextrank/ (via pip or conda)

That’s related to #47, #56 Unless there’s a new issue?

0reactions
neomatrix369commented, Apr 1, 2020

@ceteri Would you like me to open an issue on this so it can be actively looked into? Would be nice to get behind what causes this issue.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value error in Spacy when using pytextrank(Python ...
I installed both pytextrank and spacy using below commands. pip install pytextrank pip install -U spacy python -m spacy download en. Here is...
Read more >
pytextrank - PyPI
PyTextRank is a Python implementation of TextRank as a spaCy pipeline extension, for graph-based natural language work -- and related knowledge graph practices....
Read more >
PyTextRank · spaCy Universe
An implementation of TextRank in Python for use in spaCy pipelines which provides fast, effective phrase extraction from texts, along with extractive ...
Read more >
Troubleshooting FAQ - pytextrank - derwen.ai
First, we have a a few quick questions to check before you report any potential bugs: Which version of PyTextRank are you using?...
Read more >
teaching-assignments - GitLab
"""Add error codes to string messages via class attribute names.""" ... "for example:\nfrom spacy.tokens import Doc\n".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found