Use this tag for questions about installing or using the PyTextRank package or help with its algorithms. Do not use this tag for questions about other implementations of TextRank.
Questions tagged [pytextrank]
11 questions
6
votes
2 answers
spaCy needs a file that is not there: strings.json
I am running pytextrank were in its second stage, I get this error from spaCy:
File "C:\Anaconda3\lib\pathlib.py", line 371, in wrapped return strfunc(str(pathobj), *args)
FileNotFoundError: [Errno 2] No such file or directory:…

Peter
- 71
- 1
- 3
4
votes
7 answers
OSError: [E050] Can't find model 'en'
I am trying to use this pytextrank library of python- https://github.com/DerwenAI/pytextrank/blob/master/example.ipynb
but i am unable to resolve this error , earlier i was getting an error that ip.json can't be found, but then was resolved
…

simran gupta
- 87
- 1
- 1
- 9
3
votes
2 answers
Value error in Spacy when using pytextrank(Python implementation of textrank)
I have used pytextrank to extract keywords. I installed both pytextrank and spacy using below commands.
pip install pytextrank
pip install -U spacy
python -m spacy download en
Here is my code
import pytextrank
import sys
path_stage0 =…

Pathmila Kariyawasam
- 339
- 5
- 14
2
votes
1 answer
TextRank with Scattertext Visualisation
I recently tried to visualize TextRank using code, but I realized that the terms in the graph are not lemmatized. Is there a way to fix the following code so that all words in textrank_df['parse'] are lemmatized? I checked the pipeline components…

Rachel
- 21
- 3
2
votes
3 answers
Module 'pytextrank' has no attribute 'parse_doc'
I am performing a nlp task. I have written the following code. While executing, it is showing the following error. Any suggestion to resolve the error will be helpful. I am having python 3 env in google colab .
# Pytextrank
import pytextrank
import…

shan
- 553
- 2
- 9
- 25
1
vote
1 answer
Feed large text to PyTextRank
I would like to use PyTextRank for keyphrase extraction. How can I feed feed 5 million documents (each document consisting of a few paragraphs) to the package?
This is the example I see on the official tutorial.
text = "Compatibility of systems of…

E.K.
- 4,179
- 8
- 30
- 50
1
vote
1 answer
read pyTextRank file
I have a piece of text that I wish to present as a graph using pytextrank. The code (copied from source) is
import spacy
nlp = spacy.load("en_core_web_sm")
import pytextrank
import graphviz
tr = pytextrank.TextRank()
…

user9165100
- 371
- 3
- 11
1
vote
1 answer
Pytextrank - avoid lowercasing tags into key phrases extraction
I want to avoid lowercasing tags in pytextrank. Any suggestions on how that can be achieved?

Sross Gupta
- 33
- 3
1
vote
2 answers
spacy-udpipe with pytextrank to extract keywords from non-English text
I've been using pytextrank (https://github.com/DerwenAI/pytextrank/) with spacy and English models for keywords extraction - it works great!
Now I need to process non-English texts and I found udpipe (https://github.com/TakeLab/spacy-udpipe) but it…

Jan Mazanec
- 21
- 6
1
vote
1 answer
Google colab: No module named pytextrank can be found (worked previously with the same notebook)
Since recently I have been getting this error whenever I run my notebook:
ModuleNotFoundError: No module named 'pytextrank'
Here is the link to my…

Mani Sarkar
- 115
- 2
- 9
0
votes
0 answers
Python - Installing from forked GitHub repo
I am trying to install the package found here:
https://github.com/xang1234/pytextrank
Which is a forked repo from pip3 install pytextrank.
I have scoured this website, which offers different solutions and nothing seems to work for me:
I.e. I have…

Nicholas
- 3,517
- 13
- 47
- 86