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

AttributeError: module 'openke.config' has no attribute 'Config' #12

Closed ren-1247 closed 3 years ago

ren-1247 commented 3 years ago

I met this problem “AttributeError: module 'openke.config' has no attribute 'Config' ”when running train_and_export_fb15k-237z_transe.py . How should I solve it?

haseebs commented 3 years ago

Sounds like you have not installed the openke package properly. Or the version you've installed is wrong.

You should install the version that is linked in the Readme of this repo.

ren-1247 commented 3 years ago

Sounds like you have not installed the openke package properly. Or the version you've installed is wrong.

You should install the version that is linked in the Readme of this repo.

HI, Haseeb: Thank you very much for your reply. I find it is not available in the new version of openke Config.py Documents. In addition, what are the embedding dimensions of knowledge graph and text, and are they the same size? Can you give me some training parameters?

I'm looking forward to your reply

haseebs commented 3 years ago

You can find some sample params in new version of the code (not all of them will apply but you can use this as a reference): https://github.com/haseebs/RST-OWE/tree/master/paper_cfgs_and_logs

The embedding dimension that we use is 300. It is the same for the graph and text.