How to build a Language model using LSTM that assigns probability of occurence for a given sentence
How to build a Language model using LSTM that assigns probability of occurence for a given sentence Currently, I am using Trigram to do this. It assigns the probability of occurrence for a given sentence. But Its limited to the only context of 2 words. But LSTM's can do more. So how to build an LSTM Model that assigns the probability of occurrence for a given sentence? This question has not received enough attention. (TensorFlow Implementation)[tensorflow.org/versions/master/tutorials/… Can some body provide keras implementation? – Shashi Tunga yesterday 1 Answer 1 I have just coded a very simple example showing how one might compute the probability of occurrence of a sentence with a LSTM model. The full code can be found here. Suppose we want to pre...