Git Product home page Git Product logo

tea's Introduction

Source code of paper "TEA: Time-aware Entity Alignment in Knowledge Graphs", which has been accepted by TheWebConf'2023.

Environment and Dependencies

Create a new environment

>> conda create --name exp python=3.9
# Install pytorch
>> conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia
# Install BERT
>> conda install -c huggingface transformers
# Other tools
>> pip install -U scikit-learn
>> pip install torch-geometric
>> conda install pytorch-sparse -c pyg

Datasets

Download the original DBP15K and DWY100K datasets from here.

Download the hard setting DBP15K datasets from here.

Run the TEA model

Run the following scripts to train and evaluate the TEA model on all kinds of information.

# Train
>> python train.py --gpu_id 0 --channel all --dataset DBP15k/ja_en --load_hard_split 
# Evaluate
>> python evaluate.py --gpu_id 0 --dataset DBP15k/ja_en --load_hard_split 

Channels: {Digital, Literal, Structure, Name, Time, All}

Datasets: {DBP15k/ja_en, DBP15k/fr_en, DBP15k/zh_en, DWY100k/wd_dbp, DWY100k/yg_dbp}

Download the Word2Vec file for initializing the corresponding name/relation/attribute embeddings.

Citation

If you find our TEA model and the experimental results useful, please kindly cite the following paper:

@inproceedings{liu2023tea,
  author = {Liu, Yu and Hua, Wen and Xin, Kexuan and Hosseini, Saeid and Zhou, Xiaofang},
  title = {TEA: Time-Aware Entity Alignment in Knowledge Graphs},
  booktitle = {Proceedings of the ACM Web Conference 2023},
  series = {WWW'23},
  pages = {2591โ€“2599},
  location = {Austin, Texas, USA},
  year = {2023},
  doi = {10.1145/3543507.3583317}
}

Acknowledgement

We used the code of these models: RDGCN, DGMC, KEGCN, RREA, Dual-AMN, PSR, AttrE, MultiKE, AttrGNN, TEA-GNN. Thanks for the authors' great contributions!

tea's People

Contributors

uqwhua avatar

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.