Course "News Sentiment Trading Strategies" --> wrong answer

Section: 13

Calculate Sentiment Score in Python



Exercise 2.

Create The Analyzer Object



Question:

VADER stands as a robust sentiment analysis tool that finds extensive application in assessing the sentiment score and polarity of textual content. To get started, you need to create an object of the SentimentIntensityAnalyzer class from the vaderSentiment package. 

This is the objective of this exercise.

Instructions

  1. Import the SentimentIntensityAnalyzer class from the vaderSentiment.vaderSentiment module.
  2. Create an object of SentimentIntensityAnalyzer and store it as analyzer.
==CODE==
# Import the SentimentIntensityAnalyzer class from the vaderSentiment.vaderSentiment module
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer


# Create an object of SentimentIntensityAnalyzer class
analyzer = SentimentIntensityAnalyzer()

==ERROR MESSAGE==
Error Messages
The value of LHS is not quite correct. Use analyzer as LHS
...................................................................................................

I have checked the solution code and it is the same as I placed it. Giving me the error above.

Can you please tell me what is wrong with the code and how I can fix it?

Thank you for your time.
 

Hi Eien,



Thanks for pointing this out! This has been fixed.