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

e1_e2.txt #46

Closed
hauntedvalleyaspect opened this issue May 18, 2018 · 11 comments
Closed

e1_e2.txt #46

hauntedvalleyaspect opened this issue May 18, 2018 · 11 comments

Comments

@hauntedvalleyaspect
Copy link

hauntedvalleyaspect commented May 18, 2018

请问e1_e2.txt文件是如何生成的,作用是什么。

@Mrxianche
Copy link

同问

@ShellingFord221
Copy link

同问。如果是top 500 entity pairs in entity prediction的话,对每个entity的预测都不止500个

@Mrlyk423
Copy link
Member

作用是通过TransE的score为每一个(e1, r, ?)或者(?, r, e2)的 pair 选择出top-500的candidate entity.

@ShellingFord221
Copy link

但是从文件内容来看,好像并不只是被当做头预测的500个和被当做尾预测的500个加起来共1000个?比如在e1_e2.txt文件中,前1048行都是预测id为0的这个实体?

@ShellingFord221
Copy link

也就是说文件每一行由空格分割的两个数字分别表示什么呢?非常感谢!

@hauntedvalleyaspect
Copy link
Author

相关代码是什么

@ShellingFord221
Copy link

同问,如果能share一下得到e1_e2.txt文件的代码就更好了

@Mrlyk423
Copy link
Member

e1_e2.txt文件存储的是所有test文件中通过TransE的score预处理出来的entity pair,为了节省空间我们将不同triple的entity pair进行了合并。具体代码在KB2E/PTransE/PTransE_add/Test_TransE_path.cpp:
line258-259,302-303,360-361,445-447.

@Xiaobenbenben
Copy link

你好,按着论文中描述来说这个文件是包含测试集对应的e1_e2对就可以了吗,还是必须包含所有实体的

@Mrlyk423
Copy link
Member

Mrlyk423 commented Sep 4, 2018

需要包含测试集中通过TransE处理出来的top500的entity pair.

@DR73
Copy link

DR73 commented Jun 13, 2019

您好,根据您所说的,我理解的是通过Test_TransE_path.cpp生成e1_e2.txt文件,可是执行PCRA.py时就需要读入e1_e2.txt文件,所以请问e1_e2.txt文件到底是什么时候生成的呢?(代码执行顺序应该是PCRA.py->Train_TransE_path.cpp->Test_TransE_path.cpp吧?)

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

6 participants