February 2020
Intermediate to advanced
328 pages
8h 19m
English
In this recipe, we will work with the famous Amazon Fine Food Reviews dataset from Kaggle, which can be downloaded from https://www.kaggle.com/snap/amazon-fine-food-reviews. This data consists of fine food reviews from Amazon and spans more than 10 years. We will only use the review texts and their summaries in our analysis.
Let's start by loading the required libraries:
pckgs <- c("textclean","keras","stringr","tm","qdap")lapply(pckgs, library, character.only = TRUE ,quietly = T)
Now, we read two columns, Text and Summary, from the data. We will only use the first 10,000 reviews:
reviews <- read.csv("data/Reviews.csv", nrows = 10000)[,c('Text', 'Summary')]head(reviews)
The following screenshot shows a few records from ...
Read now
Unlock full access