IR2Vec
Loading...
Searching...
No Matches
OpenKE Directory Reference
Directory dependency graph for OpenKE:
seed_embeddings/OpenKE

Directories

 base
 
 config
 
 data
 
 module
 

Detailed Description

An Open-source Framework for Knowledge Embedding.

More information is available on our website http://openke.thunlp.org/

If you use the code, please cite the following paper:

@inproceedings{han2018openke,
title={{OpenKE}: An Open Toolkit for Knowledge Embedding},
author={Han, Xu and Cao, Shulin and Lv Xin and Lin, Yankai and Liu, Zhiyuan and Sun, Maosong and Li, Juanzi},
booktitle={Proceedings of EMNLP},
year={2018}
}

Overview

OpenKE is an efficient implementation based on PyTorch for knowledge embedding. We use C++ to implement some underlying operations such as data preprocessing and negative sampling. For each specific model, it is implemented by PyTorch with Python interfaces so that there is a convenient platform to run models on GPUs. OpenKE contains 4 repositories:

OpenKE-PyTorch: the repository based on PyTorch, which provides the optimized and stable framework for knowledge graph embedding models.

OpenKE-Tensorflow1.0: OpenKE implemented with TensorFlow, also providing the optimized and stable framework for knowledge graph embedding models.

TensorFlow-TransX: light and simple version of OpenKE based on TensorFlow, including TransE, TransH, TransR and TransD.

Fast-TransX: efficient lightweight C++ inferences for TransE and its extended models utilizing the framework of OpenKE, including TransH, TransR, TransD, TranSparse and PTransE.

Installation

  1. Install PyTorch
  2. Clone the OpenKE-PyTorch branch:
    git clone -b OpenKE-PyTorch https://github.com/thunlp/OpenKE --depth 1
    cd OpenKE
    cd openke
  3. Compile C++ files
    bash make.sh

Data