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

Missing import in example analogy_tasks_evaluation.py #116

Open
DoDzilla-ai opened this issue Jun 7, 2021 · 0 comments
Open

Missing import in example analogy_tasks_evaluation.py #116

DoDzilla-ai opened this issue Jun 7, 2021 · 0 comments

Comments

@DoDzilla-ai
Copy link

DoDzilla-ai commented Jun 7, 2021

There is a missing import statement for the unicode library which is used at the 37th row between these lines:

    if args.encode:
        encode = lambda words: [x.lower().encode('utf-8') for x in words]
    else:
        encode = lambda words: [unicode(x.lower()) for x in words]

From what I understand, for Python 3 unicode should be replaced with str.

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

1 participant