Source code for "Enhanced LSTM for Natural Language Inference" runnable on GPU and CPU based on Theano. If you use this code as part of any published research, please acknowledge the following paper.
"Enhanced LSTM for Natural Language Inference" Qian Chen, Xiaodan Zhu, Zhenhua Ling, Si Wei, Hui Jiang, Diana Inkpen. To appear in ACL (2017)
@InProceedings{Chen-Qian:2017:ACL,
author = {Chen, Qian and Zhu, Xiaodan and Ling, Zhenhua and Wei, Si and Jiang, Hui and Inkpen, Diana},
title = {Enhanced LSTM for Natural Language Inference},
booktitle = {Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (ACL 2017)},
month = {July},
year = {2017},
address = {Vancouver},
publisher = {ACL}
}
Homepage of the Qian Chen, http://home.ustc.edu.cn/~cq1231/
The code is modified from GitHub - nyu-dl/dl4mt-tutorial.
The code for tree-LSTM version will be released soon.
To run it perfectly, you will need:
- Python 2.7
- Theano 0.8.2
- Download and preprocess
cd data
bash fetch_and_preprocess.sh
- Train and test model
cd scripts
bash train.sh
The result is in log.txt
file.