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

NameError: global name 'unicode' is not defined #9

Closed
playma opened this issue Mar 10, 2018 · 1 comment
Closed

NameError: global name 'unicode' is not defined #9

playma opened this issue Mar 10, 2018 · 1 comment

Comments

@playma
Copy link

playma commented Mar 10, 2018

This line may cause an error. I just replace to if type(hyps) == str: and it works.
https://github.com/pltrdy/rouge/blob/master/rouge/rouge.py#L73

Reference to:
https://stackoverflow.com/questions/19877306/nameerror-global-name-unicode-is-not-defined-in-python-3

@pltrdy
Copy link
Owner

pltrdy commented Mar 12, 2018

I merged untested code, my bad.

This fix must be ok #10

@pltrdy pltrdy closed this as completed Mar 14, 2018
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

2 participants