GithubHelp home page GithubHelp logo

thunlp / ieajke Goto Github PK

View Code? Open in Web Editor NEW
44.0 8.0 16.0 19.38 MB

Code and data for our paper "Iterative Entity Alignment via Joint Knowledge Embeddings"

Jupyter Notebook 98.07% C++ 1.93%
knowledge-embedding knowledge-graph

ieajke's Introduction

IEAJKE

Codes and data for our paper "Iterative Entity Alignment via Joint Knowledge Embeddings"

The code for ITransE and DFB-1 are available now!

Dataset

For DFB-1, we provide four files

  • common_entities.txt: alignment seeds;
  • common_entities2id.txt: id version of alignment seeds;
  • newentity2id.txt: the correspondence of entities and their ids;
  • relation2id.txt: the correspondence of relations and their ids;
  • triple2id.txt: all triples in FB15K. Note that this is not the original form, but a processed one where entity seeds are already combined as one.

How to run

First, compile src/transE.cpp by: g++ transE.cpp -o transE -pthread -O3 -std=c++11 -march=native

The compilation arguments could be different from platform to platform. Such compilation command is the same as the one in Fast-TransX. If you come across problems, you can refer to the issues of Fast-TransX.

Run ./transE.

To test the result, run test.ipynb with Jupyter Notebook. We also provide pretrained embeddings in entity2vec.bern. You should get "0.8309717616319968 0.6708873480052256 80.05868756908853 9951" finally in the sixth block.

Contact

If you have any problems with my paper and datasets, please send email to [email protected].

ieajke's People

Contributors

prokil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ieajke's Issues

About DFB-2 and DFB-3

I'm trying to reproduce this model. It's by far just DFB-1 is available mightly. How could I get DFB-2 and DFB-3

关于common_entities

该文件是不是已经包括了kg1和kg2的所有对齐实体对,是不是可以认为该文件以外的任意实体对不存在对齐关系

提示错误:段错误 (核心已转储)

(1)运行命令./transE,提示段错误 (核心已转储)。查了一下是内存问题,双系统用ubuntu测试你的代码,请问怎么解决,谢谢!

(2)运行Fast-TransX项目,运行指令报同样错误:./transE -size 50 -sizeR 50 -input ./data -output ./ -load LOAD ./data -load-binary 0 -out-binary 0 -thread 3 -epochs 5 -nbatches 10 -alpha ALPHA 0.01 -margin MARGIN 1 -note ./

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.