Home

Awesome

R-Net

Requirements

There have been a lot of known problems caused by using different software versions. Please check your versions before opening issues or emailing me.

General

Python Packages

Usage

To download and preprocess the data, run

# download SQuAD and Glove
sh download.sh
# preprocess the data
python config.py --mode prepro

Hyper parameters are stored in config.py. To debug/train/test the model, run

python config.py --mode debug/train/test

To get the official score, run

python evaluate-v1.1.py ~/data/squad/dev-v1.1.json log/answer/answer.json

The default directory for tensorboard log file is log/event

See release for trained model.

Detailed Implementaion

Performance

Score

EMF1
original paper71.179.5
this project71.0779.51
<img src="img/em.jpg" width="300"> <img src="img/f1.jpg" width="300">

Training Time (s/it)

NativeNative + BucketCudnnCudnn + Bucket
E5-26406.213.56--
TITAN X2.561.310.410.28

Extensions

These settings may increase the score but not used in the model by default. You can turn these settings on in config.py.