Lua Python Shell
Latest commit 757a9b0 Feb 10, 2017 @rajarshd committed on GitHub Merge pull request #2 from vendi12/master
Thanks! :)


Code for paper Chains of Reasoning over Entities, Relations, and Text using Recurrent Neural Networks


Instructions for running the code


Get the data from here. (Note: This might change soon, as I will release an updated version of the dataset)

To get the correct format to run the models,

cd data
/bin/bash <path_to_input_data> <output_dir>

For example you can run,

cd data
/bin/bash examples/data_small_input examples/data_small_output


To start training, first checkout run_scripts/ This defines all the hyperparams and other inputs to the network. After specifying model parameters, to start training run,

cd run_sripts
/bin/bash ./

Path Query Experiment on WordNet (Sec 5.5 of the paper)

Checkout the instructions of the readme page in wordnet_experiment/

GPU/CPU settings

Set gpu_id=0 in run_scripts/ to enable GPU training using CUDA. Set gpu_id=-1 in run_scripts/ to disable GPU training.


Feel free to email me with any questions you have at