Home

Awesome

End-To-End Memory Networks for Question Answering

This is an implementation of MemN2N model in Python for the bAbI question-answering tasks as shown in the Section 4 of the paper "End-To-End Memory Networks". It is based on Facebook's Matlab code.

Web-based Demo

Requirements

$ sudo pip install -r requirements.txt
$ wget -qO- http://www.thespermwhale.com/jaseweston/babi/tasks_1-20_v1-2.tar.gz | tar xvz -C data

Usage

python babi_runner.py -t 1

The output will look like:

Using data from data/tasks_1-20_v1-2/en
Train and test for task 1 ...
1 | train error: 0.876116 | val error: 0.75
|===================================               | 71% 0.5s
python babi_runner.py -a
python babi_runner.py -j

Question Answering Demo

python -m demo.qa
python -m demo.qa -console
python -m demo.qa -train

Benchmarks

See the results here.

Author

Vinh Khuc

Future Plans

References