Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to obtain the two pretrained embedding files in preprocess.py #8

Open
LittleRedLynn opened this issue Sep 27, 2021 · 4 comments
Open

Comments

@LittleRedLynn
Copy link

LittleRedLynn commented Sep 27, 2021

Sorry I'm a new guy in KG-to-Text task. One thing confused me is that I've already downloaded the pretrained embeddings provided in OpenKE website as you guided in ReadME, however, the files are all .bin and .txt format, seems they provide nothing related to .pkl or .npy files shown in your source code, could you show me some clues? Should I do some format conversion by myself?

@turboLJY
Copy link
Owner

You should run TransE in OpenKE based on our datasets to obtain the entity embeddings.

@LittleRedLynn
Copy link
Author

You should run TransE in OpenKE based on our datasets to obtain the entity embeddings.

Could you please be a little bit more specific? There need 3 files to run TransE training process, your code in preprocess folder seems not be able to produce the 'train2id.txt' OpenKE needs, should I construct it by myself using the 'train_precessed.json'?
Another question is what the heck are the transe_dict.pkl and transe_embedding.npy? By running the TransE training code I can only obtain the weights checkpoint of TransE model, what kinds of operation should I do to get the two files?
Finally, can you just provide the embedding files you utilized in your experiment? Gratefully thanks.

@DhavalTaunk08
Copy link

You should run TransE in OpenKE based on our datasets to obtain the entity embeddings.

Can you please tell how to add our dataset in TransE

@spwidodo
Copy link

Hi
Thanks for sharing your great job..

I have same problem with @LittleRedLynn.
By running Transe . I just get transe.ckpt file. There is no transe_dict.pkl and transe_embedding.npy.
Any solution for this?

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants