Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created June 6, 2021 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/7fe4a474349db464e31cc0fc10159c0f to your computer and use it in GitHub Desktop.
Save amankharwal/7fe4a474349db464e31cc0fc10159c0f 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