In the previous chapters, when dealing with text data, we made use of data that had already been converted into a sequence of integers for developing deep network models. In this chapter, we will use text data that needs to be converted into a sequence of integers. We will start by reading the data that we will use to illustrate how to develop a text classification deep network model. We will also explore the dataset that we'll use so that we have a better understanding of it.
In this chapter, we will make use of the keras, deepviz, and readtext libraries, as shown in the following code:
# Libraries used
library(keras)
library(deepviz)
library(readtext)
For illustrating the steps involved in developing a convolutional recurrent network model, we will make use of the reuter_50_50 text dataset, which is available from the UCI Machine Learning...