I downloaded source code of word2vec in github below.
https://github.com/tensorflow/models/blob/master/tutorials/embedding/word2vec.py
I am using tensorflow on pycharm.
I'm using windows 10.
I installed tensorflow, python, numpy which are needed to use tensorflow on windows.
In word2vec.py source code, I set the savepath
, trainpath
, and evalpath
.
I downloaded the training text file from http://mattmahoney.net/dc/text8.zip
which the source code recommended.
But when I ran the code I get the error below:
C:\Users\Sungjin\AppData\Local\Programs\Python\Python35\python.exeC:/Users/Sungjin/PycharmProjects/untitled/ImpW2V.py Traceback (mostrecent call last): File"C:/Users/Sungjin/PycharmProjects/untitled/ImpW2V.py", line 43, inword2vec = tf.load_op_library(os.path.join(os.path.dirname(os.path.realpath(file)),'word2vec_ops.so')) File"C:\Users\Sungjin\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\load_library.py",line 64, in load_op_libraryNone, None, error_msg, error_code) tensorflow.python.framework.errors_impl.NotFoundError:C:\Users\Sungjin\PycharmProjects\untitled\word2vec_ops.so not found
Process finished with exit code 1
I checked Readme.md file on github but there is nothing mentioned about the file.
It seems I have to make word2Vec_ops
.so file but I don't know how.