Created
June 21, 2021 13:30
-
-
Save saisyam/a06b57411041d92a1d66689b6304df7f to your computer and use it in GitHub Desktop.
Calculate sentiment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nltk.sentiment.vader import SentimentIntensityAnalyzer | |
sia = SentimentIntensityAnalyzer() | |
text = "Pretty pricey but the lamb burger ($25) is beyond amazing. Definitely worth it. So, so good." | |
sia.polarity_scores(text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment