In this natural language processing (NLP) tutorial we’ll learn how to do sentiment analysis with tensorflow 2. We’ll use the IMDB dataset to classify a couple simple movie reviews and see how our model does.
This natural language processing model is relatively straight forward, as it’s just an encoder coupled to some bidirectional layers and a couple dense layers to handle the classification. We’ll compare two different models, one with a single LSTM layer and the other with two LSTM layers and some dropout.
#python # tensorflow #NLP