TensorFlow-Examples icon indicating copy to clipboard operation
TensorFlow-Examples copied to clipboard

fixes for Word2Vec for Python 3

Open SomePersonSomeWhereInTheWorld opened this issue 4 years ago • 0 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