Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.59 KB

File metadata and controls

25 lines (14 loc) · 1.59 KB

BiLSTM CNN for knowledge graph completion in Keras

Keras implementation for the paper titled "Path-based reasoning approach for knowledge graph completion using CNN-BiLSTM with attention mechanism". Given a candidate relation and two entities, it encodes paths that connect the entities into a low-dimensional space using a convolutional operation followed by BiLSTM. An attention layer is also applied to capture the semantic correlation between a candidate relation and each path between two entities and attentively extract reasoning evidence from the representation of multiple paths to predict whether the entities should be connected by the candidate relation.

Required Files

  • data/processed_data.tar.gz - dataset files containing grounded paths with relations and entities (e.g e1, r1, e2, r2, e3).
  • tasks - can be downloaded from [1].

For generating relation paths such as (r1, r2, ..., rk), we used [2].

The original knowledge graph data we used for our experiments can be found in [1] which includes tasks datasets with train/test triples.

If you use our code, please cite the paper

Batselem Jagvaral, Wan-Kon Lee, Jae-Seung Roh, Min-Sung Kim, Young-Tack Park, Path-based reasoning approach for knowledge graph completion using CNN-BiLSTM with attention mechanism, Expert Systems With Applications (2019), doi: https://doi.org/10.1016/j.eswa.2019.112960

Reference:

Acknowledgement

I'd like to thank my professor, Young-Tack Park for his support and advise.