malllabiisc / RESIDE

EMNLP 2018: RESIDE: Improving Distantly-Supervised Neural Relation Extraction using Side Information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error when running online/server.py

Jarvis-K opened this issue · comments

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?

besides, there are no rel_alias_side_info.py in the repo.

I have got the same issue too.

The way to fix it is:

  1. Execute sh setup.sh to download and unzip the glove.6B GloVe Embeddings.
  2. We have to manually make a copy of glove.6B.50d and name it glove.6B.50d_word2vec.txt.
  3. 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.

Hi @Jarvis-K,
Please run python -m gensim.scripts.glove2word2vec -i glove/glove.6B.300d.txt -o glove/glove.6B.300d_word2vec.txt for converting from GloVe to word2vec format.

Thanks @tpof314, actually it internally does the same things.