reddit_scraper_and_sentiment_analyzer icon indicating copy to clipboard operation
reddit_scraper_and_sentiment_analyzer copied to clipboard

SentimentIntensityAnalyzer' is not defined

Open vishalkhialani opened this issue 2 years ago • 1 comments

in reddit_post_sentiment_analysis.py line sid = SentimentIntensityAnalyzer() is only declared but the function is not coded. Please advice if you have the code for it.

Thank you, Vishal

vishalkhialani avatar Sep 03 '22 14:09 vishalkhialani

I think I found the solution we need to use : from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer

The function is a feature from VADER.

vishalkhialani avatar Sep 03 '22 14:09 vishalkhialani