Question: HW 1 Sentiment Analysis on Twitter / X This homework assignment is to do the sentiment analysis based on a text file which contains numerous
HW Sentiment Analysis on TwitterX
This homework assignment is to do the sentiment analysis based on a text file which contains
numerous tweets in its raw text format. All tweets collected in this file contains a key word
specified by the instructor. The key word being used is Trump
You can use the raw tweets file TrumpRawTweets.txt provided by instructor directly or you
can generate your own raw tweets file by following instructions in the file
TwitterSetupVpptx Your raw tweets file size at least needs to be K
After you have the raw tweets file ready, you need to perform the following tasks in a Jupyter
notebook file.
First you need to clean up the tweet file content to the best you can. A list of positive
negative and stop words are provided to you in the assignment. For each word that is not a
stop wordand the, a is as assign a value for positive sentiment or a value for
negative sentiment For the words that is not in positivenegativestop words, count as others
You need to answer the following questions:
Whats the word count for positivenegativestop wordothers
Whats the ratio of positivenegativestop wordothers compare to the total word count?
Whats the ratio for positive vs negative word count?
Do you think that the general sentiment is negative or positive? Weakly or strongly?
Submission
Submit one Jupyter notebook file ipynb with your code; be sure to explain your code using
mark downs cell and comments. No need to attach any other file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
