This code is remplementation of Learning to Rank Short Text Pairs with Convolutional Deep Neural Networks. SIGIR, 2015 in Keras.
This code is adapted from repo. https://github.com/aseveryn/deep-qa.
- python 2.7+
- numpy
- theano/tensorflow
- keras
The pre-initialized word2vec embeddings have to be downloaded from here.
To run the model, first run parsing file
$ python parse.py
Then run
$ python ltr_cnn.py
Currently support for external features (overlapping words from paper) is not supported.
If anyone is interested, let me know, or you are most welcome to send a PR.