Question: Exercise 6 - Sentiment analysis (10 points) For the following tasks, you may use the string and Sentiment Analysis packages. Consider the following quote taken

 Exercise 6 - Sentiment analysis (10 points) For the following tasks,

Exercise 6 - Sentiment analysis (10 points) For the following tasks, you may use the string and Sentiment Analysis packages. Consider the following quote taken from the HHL blog: "As a business leader of the future, it will always be important to think ahead. With a degree from a German business School, you will be exposed to a wealth of opportunities in your career." a. Please store the quote in a data object called "hhl" and check its data structure and data type. [3 points] b. Replace the phrase "a German business school by "outstanding HHL" and store the manipulated quote in a new data object "hh12". [2 points] C. Please run a text analysis of the quote in "hh12" and call the entire analysis output. Then, only call the number of words considered in the text analysis ("WordCount") and the "SentimentGi" score. [3 points) d. Finally, convert the "SentimentGi" score into a binary response, i.e. whether the quote carries an overall positive or negative sentiment. (2 point]

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!