Implementation of C-DSSM(Microsoft Research Paper) described here. A random data generator is included in the code, you can play with it or use your own data.
Keras model: airalcorn2/Deep-Semantic-Similarity-Model.
Corresponding blog post is at: Medium