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

fixes for Word2Vec for Python 3

Open LinuxPersonEC opened this issue 5 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

LinuxPersonEC avatar Nov 09 '20 21:11 LinuxPersonEC