https://github.com/borealisai/de-simple
Diachronic Embedding for Temporal Knowledge Graph Completion
https://github.com/borealisai/de-simple
Last synced: about 1 year ago
JSON representation
Diachronic Embedding for Temporal Knowledge Graph Completion
- Host: GitHub
- URL: https://github.com/borealisai/de-simple
- Owner: BorealisAI
- License: other
- Created: 2019-07-02T17:10:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-25T10:16:29.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T16:41:59.428Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 27.2 MB
- Stars: 84
- Watchers: 7
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Diachronic Embedding for Temporal Knowledge Graph Completion
This repository contains code for the reprsentation proposed in [Diachronic Embedding for Temporal Knowledge Graph Completion](https://arxiv.org/pdf/1907.03143.pdf) paper.
## Installation
- Create a conda environment:
```
$ conda create -n tkgc python=3.6 anaconda
```
- Run
```
$ source activate tkgc
```
- Change directory to TKGC folder
- Run
```
$ pip install -r requirements.txt
```
## How to use?
After installing the requirements, run the following command to reproduce results for DE-SimplE:
```
$ python main.py -dropout 0.4 -se_prop 0.68 -model DE-SimplE
```
To reproduce the results for DE-DistMult and DE-TransE, specify **model** as DE-DistMult/DE-TransE as following.
```
$ python main.py -dropout 0.4 -se_prop 0.36 -model DE-DistMult
$ python main.py -dropout 0.4 -se_prop 0.36 -model DE-TransE
```
## Citation
If you use the codes, please cite the following paper:
```
@inproceedings{goel2020diachronic,
title={Diachronic Embedding for Temporal Knowledge Graph Completion},
author={Goel, Rishab and Kazemi, Seyed Mehran and Brubaker, Marcus and Poupart, Pascal},
booktitle={AAAI},
year={2020}
}
```
## License
Copyright (c) 2018-present, Royal Bank of Canada.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.