Stateful Recurrent Neural Network
If we have data like: (from the example of previous blog) X – Y 'one', '.', 'two' – '.' '.', 'three', '.' – 'four' Where 3 words are used as input to predict 1 word from a vocabulary as an output, we can create a neural network architecture that takes three words as input and returns a prediction of the probability for each possible next word in the vocabulary. We will use three standard linear layers but with two tweaks! ...