Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any workaround for finding the texts including symbols such as '(' and ')' ? #7

Open
shivam1702 opened this issue Apr 17, 2017 · 2 comments

Comments

@shivam1702
Copy link

The algorithm breaks when it enounters these symbols. Here is the error it displays:
bash: syntax error near unexpected token '('

@davidadamojr
Copy link
Owner

davidadamojr commented Apr 17, 2017

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?

@gopalshah1996
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants