The LSTM (Long Short-Term Memory) model finds a dense low dimensional representation of words by sequentially and recurrently processing each word in a document.
the inputs of the LSTM are preprocessed text documents that consist of a sequence of words and their corresponding target variable.