GithubHelp home page GithubHelp logo

traversing_knowledge_graphs's Introduction

This repository contains the code, data, and parameters used in the following paper.

Kelvin Guu, John Miller, Percy Liang. Traversing Knowledge Graphs in Vector Space Empirical Methods in Natural Language Processing (EMNLP), 2015.

If you use the dataset/code in your research, please cite the above paper.

@inproceedings{gu2015traversing,
	author = {K. Guu and J. Miller and P. Liang},
	booktitle = {Empirical Methods in Natural Language Processing (EMNLP)},
	title = {Traversing Knowledge Graphs in Vector Space},
	year = {2015},
}

Reproducibility: A Codalab worksheet containing all of our experiments and several executable examples is available here.

Data

To automatically download the datasets used in our experiments, call the script get_datasets.sh.

data/

  • freebase/
    • train
    • dev
    • test
  • wordnet/
    • train
    • dev
    • test

data format:

  • Each line represents one (source, relation, target) triple. Elements of the triple are separated by tabs.
  • In addition to test, we also include test_induction and test_deduction. These correspond to the splits of the same name described in the paper.

To automatically download our parameters, call the script get_parameters.sh.

params/

  • freebase/
    • transE
    • bilinear_diag
    • bilinear
  • wordnet/
    • train
    • dev
    • test

params format:

  • Each file contains a pickled SparseVector object (pickled with cPickle).
  • COMP files contain parameters that have been trained on the compositional dataset. SINGLE files contain parameters that have only been trained on single edge queries.

Code

To run an experiment using our code, call

python demo.py CONFIG DATAPATH

from the code directory. CONFIG details the hyperparameters for the model and is defined in config.py. DATAPATH specifies a path to one of the datasets in data or your own dataset.

traversing_knowledge_graphs's People

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

traversing_knowledge_graphs's Issues

issues for train datasets

Hello! When I run "get_datasets.sh", I get the datasets except for the train datasets and the coda link can't find it either. I wonder if you could offer it to me,which is significant to me.
Warm regards.
1714208550266
3f5a402180a71a3fffb2953bf40ee4c

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.