recurrent neural networks listing - reading data into memory #read the csv dataset using pandas df pd read_csv("/input/imdb-dataset-sentiment-analysis-incsv-format/train csv"print("df shape :\ ",df shapeprint("df label ",df label value_counts()df head(output[df shape ( df label namelabeldtypeint we have only two columns in the dataset"text,which contains the actual commentand "label,which contains the values (negativeand (positivethe distribution between positive and negative is fairly even nextwe will use the torchtext dataset wrappers that will help us to create an iterator-based dataset that streamlines the data processing tasks we need as illustrated in listing - we begin by defining the raw datatypes required to define our train and validation dataset