Files
Castor/simple_qa_rnn/README.md
T
Salman Mohammed 061cc8dd09 Used torchtext to refactor relation prediction model - much cleaner! (#33)
Refactored the code for Ferhan's relation prediction model using torchtext
2017-07-15 07:06:10 +08:00

546 B

Relation Prediction Model

  • Download and extract SimpleQuestions dataset by running the script:
bash fetch_dataset.sh 
  • You will also require the package - torchtext.
git clone https://github.com/pytorch/text.git
cd path/to/torchtext
python setup.py install
  • Run the training script with the following commands. Please check out args.py file to see the different commands available:
cd relation_prediction
python train.py
python train.py --no_cuda
python train.py --rnn_type gru