Code Monkey home page Code Monkey logo

complex-nne_aer's Introduction

ComplEx-NNE+AER

Codes and datasets for "Improving Knowledge Graph Embedding Using Simple Constraints" (ACL-2018)

Introduction

The repository provides java implementations and DB100K dataset used for the paper:

As well as the implementations for the following papers:

Datasets

Files

Datasets we used are in the corresponding subfolder contained in datasets/ with the following formats:

  • _train.txt,_valid.txt,_test.txt; training, valid, test set with string id; format: e1\tr\te2\n
  • _cons.txt; approximate entailment constraints; formant: r1,r2\tconfidence\n, where '-' denotes the inversion

Preprocessing

python data.py data_folder

Codes

Run the code

java -jar -train data_folder/train.txt -valid data_folder/valid.txt -test data_folder/test.txt

Parameters

You can changes parameter when training the model

k = number of dimensions
lmbda = L2 regularization coffecient
neg = number of negative samples
mu = AER regularization coffecient

Citation

@inproceedings{boyang2018:aer,
	author = {Ding, Boyang and Wang, Quan and Wang, Bin and Guo, Li},
	booktitle = {56th Annual Meeting of the Association for Computational Linguistics},
	title = {Improving Knowledge Graph Embedding Using Simple Constraints},
	year = {2018}
}

Contact

For all remarks or questions please contact Quan Wang: wangquan (at) iie (dot) ac (dot) cn .

complex-nne_aer's People

Contributors

boyang-nlp avatar

Watchers

James Cloos avatar  avatar

Forkers

aarthiis

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.