This code belongs to the "Implementing a MPCNN for Sentence Similarity in Tensorflow" blog post.
- Python 2.7
- Tensorflow 1.0
- numpy
Because the glove file is too big, there is no way to upload. Please go to the official website to download glove.6B.50d.txt.
You should add
400000 50
at the first row in the glove.6B.300d.txt file, after that we could read the glove with word2vec tools.
or you will meet the error ---- ValueError: invalid literal for int() with base 10: 'the'
Hava a good time!