Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is a python work and i don't know what to do. I need to create a function that will perform simple sentiment analysis on
This is a python work and i don't know what to do. I need to create a function that will perform simple sentiment analysis on Twitter data. I really need help.
Learning Outcome: By completing this assignment, you will gain skills relating to using functions complex data structures, nested loops, text processing, file input and output, exceptions in Python, writing code that is used by other programs . Background With the emergence of Internet companies such as Google, Facebook, and Twitter, more and more data accessible online is comprised of text. Textual data and the computational means of processing it and extracting information is also increasingly more important in areas such as business, humanities, social sciences, etc. In this assignment, you will deal with textual analysis Twitter has become very popular, with many people "tweeting" aspects of their daily lives. This "flow of tweets" has recently become a way to study or guess how people feel about various aspects of the world or their own life. For example, analysis of tweets has been used to try to determine how certain geographical regions may be voting -this is done by analyzing the content, the words, and phrases, in tweets. Similarly, analysis of keywords or phrases in tweets can be used to determine how popular or unpopular a movie might be. This is often referred to as sentiment analysis Task: In this assignment, you will write a Python module, called sentiment analysis.py (this is the name of the file that you should use) and a main program, main.py, that uses the module to analyze Twitter information. In this module, you will create a function that will perform simple sentiment analysis on Twitter data. The Twitter data contains comments from individuals about how they feel about their lives and comes from individuals across the continental United States. The objective is to determine which timezone (Eastern, Central, Mountain, Pacific; see below for more information on how to do this) is the "happiest". To do this, your program will need to Analyze each individual tweet to determine a score-a "happiness score". The "happiness score" for a single tweet is found by looking for certain keywords (which are given) in a tweet and for each keyword found in that tweet totaling their "sentiment values". In this assignment, each value is an integer from 1 to 10 in the im the IVIStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started