GithubHelp home page GithubHelp logo

e1_e2.txt about kb2e HOT 11 CLOSED

hauntedvalleyaspect avatar hauntedvalleyaspect commented on May 23, 2024
e1_e2.txt

from kb2e.

Comments (11)

Mrxianche avatar Mrxianche commented on May 23, 2024

同问

from kb2e.

ShellingFord221 avatar ShellingFord221 commented on May 23, 2024

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

from kb2e.

Mrlyk423 avatar Mrlyk423 commented on May 23, 2024

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

from kb2e.

ShellingFord221 avatar ShellingFord221 commented on May 23, 2024

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

from kb2e.

ShellingFord221 avatar ShellingFord221 commented on May 23, 2024

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

from kb2e.

hauntedvalleyaspect avatar hauntedvalleyaspect commented on May 23, 2024

相关代码是什么

from kb2e.

ShellingFord221 avatar ShellingFord221 commented on May 23, 2024

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

from kb2e.

Mrlyk423 avatar Mrlyk423 commented on May 23, 2024

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.

from kb2e.

Xiaobenbenben avatar Xiaobenbenben commented on May 23, 2024

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

from kb2e.

Mrlyk423 avatar Mrlyk423 commented on May 23, 2024

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

from kb2e.

DR73 avatar DR73 commented on May 23, 2024

您好,根据您所说的,我理解的是通过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吧?)

from kb2e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.