Skip to content

Instantly share code, notes, and snippets.

@saisyam
Created June 21, 2021 13:34
Show Gist options
  • Save saisyam/17276051626ab5b80f7912b6ae46d783 to your computer and use it in GitHub Desktop.
Save saisyam/17276051626ab5b80f7912b6ae46d783 to your computer and use it in GitHub Desktop.
Analyze sentiment
if compound >= 0.05:
print("Positive")
elif compound <= -0.05:
print("Negative")
else:
print("Neutral")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment