Skip to content

Instantly share code, notes, and snippets.

@rajacsp
Created February 10, 2019 15:30
Show Gist options
  • Save rajacsp/3a5ac0dad6fd460822bded7ffd51a92c to your computer and use it in GitHub Desktop.
Save rajacsp/3a5ac0dad6fd460822bded7ffd51a92c to your computer and use it in GitHub Desktop.
from nltk.sentiment.vader import SentimentIntensityAnalyzer
sid = SentimentIntensityAnalyzer()
sentiment = sid.polarity_scores("Hello Toronto")
print(sentiment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment