Code for AAAI 2020 paper "Select, Answer and Explain: Interpretable Multi-hop Reading Comprehension over Multiple Documents"
Based on PyTorch
Evaluation code for SAE-large on HotpotQA leaderboad with pretrained models.
-
git clone
-
Install PyTorch. The code has been tested with PyTorch >= 1.1
-
Install the requirements
-
python -m spacy download en_core_web_sm
-
Download pretrained models. Put zip file into the same folder with
main.py
, and unzip it.
Create a directory output
in the same folder with main.py
and then run
python main.py input_file
input_file
can be HotpotQA dev file or other data sets organized in the same format with HotpotQA.
By default, the code uses the 0th GPU but you can change it the main.py
.
The final prediction pred.json
will be in the output
folder.
@inproceedings{tu2020sae,
title={Select, Answer and Explain: Interpretable Multi-hop Reading Comprehension over Multiple Documents},
author={Tu, Ming and Huang, Kevin and Wang, Guangtao and Huang, Jing and He, Xiaodong and Zhou, Bowen},
booktitle={{AAAI 2020 (accepted)}},
year={2020}
}