Sentiment Analysis Product Review Rating Rating 4 5 Positive 1 2 Negative 3 Sentiment Neut Q37255555

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

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.