Code Monkey home page Code Monkey logo

dkrl's Introduction

DKRL

New: Add entity type information

INTRODUCTION

Description-Embodied Knowledge Representation Learning (DKRL)

Representation Learning of Knowledge Graphs with Entity Descriptions (AAAI'16)

Ruobing Xie

COMPILE

Just type make in the folder ./

NOTE

Pre-trained embeddings for entity/relation/word are optional. We update both Structure-based Representations and Description-based Representations in this version. We can also fix Structure-based Representations pre-trained by other models and only update Description-based Representations.

DATA

FB15k is published by the author of the paper "Translating Embeddings for Modeling Multi-relational Data (2013)." [download] You can also get FB15k from here: [download]

Entity list and descriptions of FB15k used in this work [download]

FB20k is based on FB15k and used for zero-shot scenario [download]

Entity type information for entity classification [download]

Entity name file [download]

CITE

If the codes or datasets help you, please cite the following paper:

Ruobing Xie, Zhiyuan Liu, Jia Jia, Huanbo Luan, Maosong Sun. Representation Learning of Knowledge Graphs with Entity Descriptions. The 30th AAAI Conference on Artificial Intelligence (AAAI'16).

dkrl's People

Contributors

xrb92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dkrl's Issues

entity2type.txt

Hi,

Thanks for your work! I'm wondering how to generate entity type information in entity2type.txt? Thank you.

about the parameters

hello,I feel so sorry to disturb you.
I used the optimal parameters provided by the paper,but it performed worse than the paper,which makes me feel so confused.
Always look forward to your reply.Thanks so much.

Missing word_vector_50 file

Where can i find the file located at
line 190
string n_w_string = "../../../word2vec-41/word_vector_" + ss.str() + ".txt";

Missing relation2id.txt and word2id.txt

In Train_cnn_multi.cpp, prepare() requries file relation2id.txt and word2id.txt.
985 FILE* f2 = fopen("../data/relation2id.txt","r");
986 FILE* f3 = fopen("../data/word2id.txt","r");
Seems that you've preprocessed fb15k and I didn't find them in your data.rar. Would you please provide them?

执行make指令报错

我在把源码下载到电脑上之后执行了make命令,但是现实报错,在test_cnn_multi.cpp的296行。请问是我的g++版本问题吗?

make报错

在运行DKRL的代码的时候,make报错
g++ Train_cnn_multi.cpp -o Train_cnn_multi -O2 -lpthread
Train_cnn_multi.cpp: 在函数‘void run(int, int, int, double, double, int)’中:
Train_cnn_multi.cpp:296:12: 警告:extended initializer lists only available with -std=c++11 or -std=gnu++11 [默认启用]
mut_mutex =PTHREAD_MUTEX_INITIALIZER;
^
Train_cnn_multi.cpp: 在函数‘void sgd()’中:
Train_cnn_multi.cpp:491:57: 警告:将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast]
pthread_create(&threads[k], NULL, rand_sel, (void *)k); //train
^
Train_cnn_multi.cpp:499:61: 警告:将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast]
pthread_create(&threads2[k], NULL, update_grad, (void *)k); //update
^
g++ Test_cnn.cpp -o Test_cnn -O2 -lpthread
,请问该如何解决

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.