GithubHelp home page GithubHelp logo

kg-text-embeddings's Introduction

Knowledge Graph Embeddings using Textual Associations

This repository contains code and data for the experiments in the paper:

Unsupervised Embedding Enhancements of Knowledge Graphs using Textual Associations
by Neil Veira, Brian Keng, Kanchana Padmanabhan, Andreas Veneris
Published at IJCAI 2019.

Requirements

The code requires the following packages:

  • Python 3.6
  • numpy 1.15.4
  • scipy 1.0.0
  • scikit-learn 0.19.1
  • gensim 3.5
  • nltk 3.3
  • tensorflow 1.5

Usage

All experimental configurations can be run through the script run.py (see run.py --help for details), which performs the data processing, training, and evaluation steps. Seven bash scripts are provided to reproduce the seven configurations from the paper. The command format is run_<model>.sh <dataset> <scoring function> .

Supported datasets include Wordnet (WN) and Freebase (FB)

Supported scoring functions include Structured Embeddings (SE), Translational Embeddings (TransE), Translational Relations (TransR), RESCAL (RESCAL), DistMult (DistMult), and Holographic Embeddings (HolE).

For example, to run the FeatureSum model on Wordnet using the DistMult scoring function, run

./run_FeatureSum.sh WN DistMult 

Trained Embeddings

Word embedding vectors learned by the WeightedWordVectors model for Wordnet and Freebase can be found in the trained_embeddings directory. Each file is a pickled dict mapping words (strings) to 100-dimensional numpy arrays.

kg-text-embeddings's People

Contributors

apetresc avatar neil-veira avatar

Watchers

 avatar

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.