Question: PYTHON PROGRAMMING You will find a zipped file containing 100 reviews from Yelp. You are required to write a program that computes the sentiments of

PYTHON PROGRAMMING

You will find a zipped file containing 100 reviews from Yelp. You are required to write a program that computes the sentiments of each of the 100 reviews. There are several ways to do this:

Use the AFFIN-111.txt file on Blackboard to get words and their associated sentiment. For each Yelp review, iterate through the words and get the cumulative sentiment score.

You may use Textblob to compute the sentiment score for each Yelp review.

NLTK has something called SentimentIntensityAnalyzer (see my slides for an example) to compute sentiments.

Use any two of the approaches shown above to compute the sentiments of each of the 100 Yelp reviews. A sample output using AFFIN-111.txt and Textblob will be as follows:

Review AFFIN-Sentiment Textblob-Sentiment

1 8 0.7

2 -3 -0.16

Link to the AFFIN file :

https://drive.google.com/open?id=18RW1L_Tm6fHGlMFK4KlEVWoKdC7AhH2d

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!