0

I am trying to learn sentiment analysis using vaderSentiment. For some reason, the when I create a query, I am getting the above error. I've checked the documentation, and there is no mention of a Utc attribute being required. Here is the basic code I am using:

from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
import twint

analyzer = SentimentIntensityAnalyzer()

c = twint.Config()
c.Search = "Tesla" 
c.Store_object = True
c.Since = "2023-01-20"

twint.run.Search(c)

for tweet in twint.output.tweets_list:
    print(tweet.tweet)
    scores = analyzer.polarity_scores(tweet.tweet)
    print(scores)

I've had a great deal of issues trying to get twint to work with my system, so it's highly probable I've not installed it correctly.

Mark Scholes
  • 75
  • 2
  • 6

0 Answers0