Question: Sentiment analysis ( or opinion mining ) is a natural language processing ( NLP ) technique used to determine whether data is positive, negative or

Sentiment analysis (or opinion mining) is a natural language processing (NLP) technique used to determine whether data is positive, negative or neutral. Sentiment analysis is often performed on textual data to help businesses monitor brand and product sentiment in customer feedback, and understand customer needs. The attached "shutdown.txt" has tweets retrieved from Tweeter based on keyword "shutdown". The "positive.txt" contains a dictionary of positive words, while "negative.txt" has a list of negative words. Write a code to count the number of positive words #positive and negative words #negative in "tweets.txt".
If #positive > # negative, consider the sentiment to be positive
If #positive < # negative, consider the sentiment to be positive
If #positive = # negative, consider the sentiment to be neutral

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!