Missing import in example analogy_tasks_evaluation.py
DoDzilla-ai opened this issue · 0 comments
DoDzilla-ai commented
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
.