haseebs / OWE

Pytorch code for An Open-World Extension to Knowledge Graph Completion Models (AAAI 2019)
https://aaai.org/ojs/index.php/AAAI/article/view/4162
37 stars 9 forks source link

How to find the enwiki_20180420_300d.bin ? #9

Closed MiaoHu-Pro closed 3 years ago

MiaoHu-Pro commented 3 years ago

Hi,

I only find the enwiki_20180420_300d.txt or enwiki_20180420_300d.pkl, but I cannot find 300d.bin.

could you share this file?

Miao

haseebs commented 3 years ago

Try converting the txt to bin using something like this

from gensim.models.keyedvectors import KeyedVectors

model = KeyedVectors.load_word2vec_format('filename.txt', binary=False)
model.save_word2vec_format('filename.bin', binary=True)
MiaoHu-Pro commented 3 years ago

Try converting the txt to bin using something like this

from gensim.models.keyedvectors import KeyedVectors

model = KeyedVectors.load_word2vec_format('filename.txt', binary=False)
model.save_word2vec_format('filename.bin', binary=True)

Thank you for your reply.

I am running your code. But it's not going well. I downloaded the data set, could you give me an example?
For example : python3 owe/run_open_world.py -t -c ./data/FB15k-237-OWE -d ./ --complex ./data/FB15k_embedding python3 owe/run_open_world.py -e -lb -c ./data/preprocessed -d ./ --complex ./data/FB15k_embedding