Skip to content

Latest commit

 

History

History

transx

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TransX · Embedding Entities and Relationships of Multi-relational Data

This repository is converted from thunlp/TensorFlow-TransX, which is a light and simple version of OpenKE based on TensorFlow, including TransE, TransH, TransR and TransD. TransX methods are used for knowledge representation learning (KRL), which encode information of relational knowledge into vectors and expand its usage into many different fields.

This repository is just a practice codes after reading several KRL related papers to help understand the process better. For more details and information on this field, please refer: Natural Language Processing Lab at Tsinghua University -- GitHub page.

Dataset can be download from [here].

In this repository, the codes structure is different from the original one, some modifications and adjustments are made to let the codes more understandable and easily to use.

TransH Training Example:

Input Files Path : ./data/FB15K/
Input Files Path : ./data/FB15K/

Building Graph...Done...
Training started...
  step   1, loss: 2128.2130
  step   2, loss: 1002.4949
  step   3, loss: 648.3365
  ...
  step 399, loss:  18.6965
  step 400, loss:  19.4174
  step 401, loss:  19.2409
  ...
Done...

Useful Information and Reference: