ngl567 / RPJE

AAAI 2020: Rule-Guided Compositional Representation Learning on Knowledge Graphs
44 stars 7 forks source link

'n2n.txt' missing #3

Open tzc0029 opened 4 years ago

tzc0029 commented 4 years ago

Hello,

There is a file called 'n2n.txt' missing in folder FB15K237, which is required in Test_RPJE.cpp line 666: FILE* f7 = fopen("./n2n.txt","r"); Can you please double-check to see what happened? Or if there's any other way I can reproduce your result in FB15K237?

Thank you

ngl567 commented 4 years ago

Thank you for your question. n2n.txt is a file to provide the 1-1, 1-N, N-1 and N-N relations, and further to evaluate the performance of mapping these relation properties. We just conduct the link prediction of 1-1, 1-N, N-1 and N-N relations on dataset FB15K, so n2n.txt is only used for this dataset and not available to FB15K237. You can annotate the codes corresonding to n2n.txt and rel_type, and then the codes can be run correctly.

tzc0029 commented 4 years ago

Thank you for your explanation. May I ask you one more thing, I see a lot of warning messages "miss entity: xxxx" during testing, possibly generated from lines 633 and 637 in Test_RPJE.cpp. In the meantime, the performance hits@10 is significantly lower than reported. Could you tell me what can possibly go wrong in this case?

ngl567 commented 4 years ago

Did you choose the correct file path? If it is the correct path, this problem will not occur.

liushizhong123 commented 3 years ago

Thank you for your explanation. May I ask you one more thing, I see a lot of warning messages "miss entity: xxxx" during testing, possibly generated from lines 633 and 637 in Test_RPJE.cpp. In the meantime, the performance hits@10 is significantly lower than reported. Could you tell me what can possibly go wrong in this case?

Hello, I also encountered this problem. Did you solve it? I checked the path and I am really confused?