Skip to content

PyTorch Implementation of "Learning Natural Language Inference with LSTM", 2016, S. Wang et al. (https://arxiv.org/pdf/1512.08849.pdf)

License

Notifications You must be signed in to change notification settings

donghyeonk/match-lstm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

match-lstm

Pytorch Implementation of "Learning Natural Language Inference with LSTM", 2016, S. Wang et al. (https://arxiv.org/pdf/1512.08849.pdf)

Env.

Requirements

Dataset

Word Embeddings

Experiment

# Create a pickle file: data/snli.pkl
$ python3 dataset.py

# Run
$ python3 main.py

Training time

  • 156 minutes per training epoch w/ a NVIDIA Titan Xp GPU
  • I plan to reduce the training time soon. (Work in progress)

Result

  • Epoch 6
  • Training loss: 0.361281, accuracy: 86.1% (mLSTM train accuracy: 92.0%)
  • Dev loss: 0.392275, accuracy: 85.8% (mLSTM dev accuracy: 86.9%)
  • Test loss: 0.397926, accuracy: 85.5% (mLSTM test accuracy: 86.1%)

Reference

https://github.com/shuohangwang/SeqMatchSeq

About

PyTorch Implementation of "Learning Natural Language Inference with LSTM", 2016, S. Wang et al. (https://arxiv.org/pdf/1512.08849.pdf)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages