stmn
Question Answering system from stmn:https://pdfs.semanticscholar.org/ca63/5d353d25644e385c0eeee8c8ebde031d6fa5.pdf
Requirements:
download data to corresponding directories in stmn folder:
cd (top_directory_of_folder)
mkdir data
cd data
curl -O http://www.cs.toronto.edu/~rkiros/models/dictionary.txt
curl -O http://www.cs.toronto.edu/~rkiros/models/utable.npy
curl -O http://www.cs.toronto.edu/~rkiros/models/btable.npy
curl -O http://www.cs.toronto.edu/~rkiros/models/uni_skip.npz
curl -O http://www.cs.toronto.edu/~rkiros/models/uni_skip.npz.pkl
curl -O http://www.cs.toronto.edu/~rkiros/models/bi_skip.npz
curl -O http://www.cs.toronto.edu/~rkiros/models/bi_skip.npz.pkl
##To Run:
python wmemnn.py babi/qa5_three-arg-relations_train.txt
if minimal computing resources are available:
python wmemnn.py babi/qa5_short_train.txt
some others available in:
python wmemnn.py babi/en/~~~.txt
##Note
to redownload bAbi manually
cd (top_directory_of_folder)
curl -O http://www.thespermwhale.com/jaseweston/babi/tasks_1-20_v1-2.tar.gz
tar -xvzf http://www.thespermwhale.com/jaseweston/babi/tasks_1-20_v1-2.tar.gz
mv tasks_1-20_v1-2 babi
if using newest version of Keras, need to add theano_utils.py file to:
/Library/Python/2.7/site-packages/keras/utils/
##Issues
This model currently has issues with converging completely.
Pull requests trying to remedy this issue are welcomed.
Acknowledgements
based on Pararth Shah's qa-memnn implementation and Ryan Kiros' skip-thoughts implementation.
License
JSON