We use the Amazon product reviews polarity dataset for the various projects in this chapter. It is an open dataset constructed and made available by Xiang Zhang. It is used as a text classification benchmark in the paper: Character-level Convolutional Networks for Text Classification and Advances in Neural Information Processing Systems 28, Xiang Zhang, Junbo Zhao, Yann LeCun, (NIPS 2015).
The Amazon reviews polarity dataset is constructed by taking review score 1 and 2 as negative, 4 and 5 as positive. Samples of score 3 are ignored. In the dataset, class 1 is the negative and class 2 is the positive. The dataset has 1,800,000 training samples and 200,000 testing samples.
The train.csv and test.csv files contains all the samples as comma-separated values. There are three columns in them, corresponding to class index (1 or 2), review title...