资源算法Skip-Thought_Memory_Networks

Skip-Thought_Memory_Networks

2020-01-06 | |  59 |   0 |   0

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


上一篇:skip-thoughts-tfidf

下一篇:IntroVAE-Pytorch

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...