Coder Social home page Coder Social logo

Comments (4)

dakeleblack avatar dakeleblack commented on August 21, 2024

请问最终得到的sim_mat矩阵的含义是什么,对应位置的元素代表测试数据中KG1和KG2两两实体的相似度吗?

from openea.

sunzequn avatar sunzequn commented on August 21, 2024

同学你好,

感谢你对我们工作的关注。

OpenEA是面向知识图谱(KG)实体对齐任务的工具包,类似于你提到的实体链接。train_links的已知的对齐实体对,用于训练模型。输出文件中的alignment_results_12是预测的实体对的id,kg1_ent_embeds_txt等文件是输出的embeddings (text format)。sim_mat是相似度矩阵。

目前OpenEA不支持非KG场景的对齐任务。不过,你可以用其他表示学习技术给实体学习embeddings,对齐方法可以借鉴OpenEA里面的。

from openea.

dakeleblack avatar dakeleblack commented on August 21, 2024

感谢作者解答,还有一个问题想请教下作者,我看到测试数据test_links也是一些实体对,这些实体对不一定是对齐的吧?还有想问的就是如果KG中有些实体没有关系的话是否这些实体就没有对应的embedding表示了,因为看到代码中实体编号只是从关系三元组中的实体得到的,没有加上属性三元组中的实体:ent_ids1, ent_ids2 = generate_mapping_id(kg1.relation_triples_set, kg1.entities_set,kg2.relation_triples_set, kg2.entities_set),而entities_set则是包含了关系和属性中所有涉及到的实体,这个地方貌似有点问题,希望能得到解答,感谢。

from openea.

sunzequn avatar sunzequn commented on August 21, 2024

同学你好,很抱歉回复晚了。

当前数据集下面test_links都是对齐的。
目前数据集里面实体都是有关系的,然后因为目前的方法都考虑了关系,所以我先抽取的关系图和其中的实体,然后抽取这些实体的属性,所以有属性的实体都是有关系的。这里,未来工作,大家可以考虑更加复杂的情况。欢迎探索!

from openea.

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.