Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 3, 2021 07:10
Show Gist options
  • Save amankharwal/4755d50a3dda6da3053c5e5b42103006 to your computer and use it in GitHub Desktop.
Save amankharwal/4755d50a3dda6da3053c5e5b42103006 to your computer and use it in GitHub Desktop.
x = sum(data["Positive"])
y = sum(data["Negative"])
z = sum(data["Neutral"])
def sentiment_score(a, b, c):
if (a>b) and (a>c):
print("Positive 😊 ")
elif (b>a) and (b>c):
print("Negative 😠 ")
else:
print("Neutral 🙂 ")
sentiment_score(x, y, z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment