error when running online/server.py
Jarvis-K opened this issue · comments
Jarvis commented
When I ran the python online/server.py
, an error occurred: FileNotFoundError: [Errno 2] No such file or directory: './glove/glove.6B.50d_word2vec.txt'
Where can I download this file? or where it was generated?
Jarvis commented
besides, there are no rel_alias_side_info.py
in the repo.
Huang Haojie commented
I have got the same issue too.
The way to fix it is:
- Execute
sh setup.sh
to download and unzip the glove.6B GloVe Embeddings. - We have to manually make a copy of
glove.6B.50d
and name itglove.6B.50d_word2vec.txt
. - Finally, we need to manually add the following extra line as the first line in the file
glove.6B.50d_word2vec.txt
.
400000 50
i.e. The file contains 400000 words, each word has a vector dimension of 50. Otherwise the gensim module may not be able to load the embedding file.
p.s. I am using gensim version 3.8.0.
Shikhar Vashishth commented