sentiment analysis on product review and rating if rating is 4 and5 should be positive if 1 and 2 should be negative and if its 3sentiment should be neutral using python anyone using any kind ofcsv data
sentiment analysis on amazon consumer review using python i havecsv file which i download from kaggle i need to write program to dosentiment analysis on that data with pisitive, negative and neutalsentiments.
Answer
SENTIMENTANALYSIS
STEP 1:
#WebScrapping of Girl on the Train
library(rvest)
library(curl)
#Read the URL
url <-“https://www.amazon.com/Anker-Braided-Tangle-Free-Gold-Plated-Connectors/product-reviews/B00SUX3XQC/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews”
data <- read_html(paste(url,1,sep = “”))
review <- data %>% html_nodes(“.review-text”) %>%html_text()
for(level in c(2:500)){
data <- read_html(paste(url,level,sep = “”))
review <- c(review,data %>% html_nodes(“.review-text”)%>% html_text())
}
review