# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer

tweets = ["""'@MartinSLewis Do you know where we stand with stag/hen company ‘Last night of freedom’.
We have a large group booked""",
"""@tomGadsby I wish @DonaldTrump had reacted better to corona!""",
"""Went to see the new Marvel movie last night, the film was amazing"""]

s = SentimentIntensityAnalyzer()

for tweet in tweets:
    print(tweet[:50], s.polarity_scores(tweet))

s.polarity_scores(tweets[0])

sentiments = []

'meh'
'i hate everything and i love everything' #slightly negative
'i love everything and i hate everything' #slightly positive

### building blocks
*neg, neu, and pos ranges from 0-1-0 means minimum of that emotion, 1 means maximum presence of emotion
* compound - ranges between -1 and 1. 0 is fully neutral, 1 is fully positive

StarcoderdataJupyterScriptsDedupFiltered