This repo is for the implementation of the siamese lstm model by:
The code was from my previous attending of Kaggle Quora Pairs Competiton
The model was implemented with Tensorflow(python) and will be tested with part of the data from the competition above
The structure of Siamese_LSTM is like
The left and right lstm shared commom parameters, which are used to extract features from the sequence of embedded text sentences.
To run the code just get into the directory and type
python train_test_sampling.py
The sample output from the test case with the model on the Kaggle Quora data is like
The model can be improved by adding the fully connected layers after the lstm siamese structure, change the form of loss function or using lstm with other strctures(deeper, bidirectional or tree-based structure)