[P] Sentence similarity using siamese LSTM
So I have a project where I find the semantic sentence similarity between a dataset of two sentences. For the dataset, I use STS-Benchmark.
First, I used English Wikipedia dump to create a word2vec matrix. Then I used the function text_to_sequence to convert my sentences to an array.
I developped a siamese LSTM, but my problem is that the validation accuracy never increase. I’m stuck at an accuracy of 0.25 to 0.30. When I use spearman’s correlation, I get a value of 45%.
Here is my code: https://pastebin.com/jPaZbDDM
submitted by /u/momo11arsenal
[link] [comments]