In this recipe, we will use TFLearn for creating a sentiment analysis deep learning network based on CNNs. As discussed in the previous section, our CNN will be in one dimension. We are going to use the IMDb dataset, a collection of 45,000 highly popular movie reviews for training, and 5,000 for testing.
Creating a ConvNet for Sentiment Analysis
Getting ready
TFLearn has libraries for automatically downloading the dataset from the network and for facilitating the creation of the ConvNet, so let's go directly to the code.
How to do it...
We proceed with the recipe...