Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Code How to design a code to solve two questions 1- What is Loop to find the sentiment of all reviews using TextBlob. In

Python Code

How to design a code to solve two questions

1- What is Loop to find the sentiment of all reviews using TextBlob.

In the loop add 0 or 1 to a list or vector depending on whether TextBlob prediction is negative or positive

2- What is TextBlob's accuracy and confusion matrix? What about the false positive and false negative rates?

imdb.csv

Review Label A very, very, very slow-moving, aimless movie about a distressed, drifting young man. 0 Not sure who was more lost - the flat characters or the audience, nearly half of whom walked out. 0 Attempting artiness with black & white and clever camera angles, the movie disappointed - became even more ridiculous - as the acting was poor and the plot and lines almost non-existent. 0 Very little music or anything to speak of. 0 The best scene in the movie was when Gerardo is trying to find a song that keeps running through his head. 1 The rest of the movie lacks art, charm, meaning... If it's about emptiness, it works I guess because it's empty. 0 Wasted two hours. 0 Saw the movie today and thought it was a good effort, good messages for kids. 1 A bit predictable. 0 Loved the casting of Jimmy Buffet as the science teacher. 1 And those baby owls were adorable. 1 The movie showed a lot of Florida at it's best, made it look very appealing. 1 The Songs Were The Best And The Muppets Were So Hilarious. 1 It Was So Cool. 1 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions