Question: get_sentiment: This function takes a filename as its sole argument. The file contains a j son string representing a list of the text of a

get_sentiment: This function takes a filename as its sole argument. The file contains a j son string representing a list of the text of a number of tweets. Open the file in read mode and use the j son module to load its contents into a Python list (see the relevant notebook). Use textblob to perform sentiment analysis on each of the tweets, rejecting any that have both polarity and subjectivity equal to 0. 0. Return a two-element list containing the mean of the remaining polarities and the sample standard deviation of those polarities. In order to use textblob, you will need to install it from the command line: > Windows PowerShell hw8> conda install -c conda-forge textblob collecting package metadata (repodata. json): done Solving environment: done
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
