Skip to content

Missing import in example analogy_tasks_evaluation.py #116

@DoDzilla-ai

Description

@DoDzilla-ai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions