You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure I understand the issue. I tried the algorithm with text that contains '(' and ')' and it seemed to work fine. Please, can you provide examples of what you are trying to do? Maybe upload the text file so I can try it with that?
Just change the encoding type to UTF-8 by inserting the following lines in your textrank.py file in usr/local/bin or wherever it is installed: import sys
reload(sys)
sys.setdefaultencoding('utf8')
And the code will run properly.
abehmiel
added a commit
to abehmiel/TextRank
that referenced
this issue
Oct 6, 2017
The algorithm breaks when it enounters these symbols. Here is the error it displays:
bash: syntax error near unexpected token '('
The text was updated successfully, but these errors were encountered: