aymericdamien / TensorFlow-Examples

TensorFlow Tutorial and Examples for Beginners (support TF v1 & v2)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fixes for Word2Vec for Python 3

SomePersonSomeWhereInTheWorld opened this issue · comments

Thanks to https://zhuanlan.zhihu.com/p/150579437

Change this line:

# Evaluation Parameters.
eval_words = [b'five', b'of', b'going', b'hardware', b'american', b'britain']

and https://stackoverflow.com/a/53401158/7606730
replace xrange with range