Basic LSTM Network

The first layer of a LSTM Network should always be an embedding layer which will take the vocabulary dictionary size as the input. Before we initialize the network we need to define the vocabulary that is simply a dictionary (with unique words) and each word will have a numerical index, to do so we can use the…