Skip to content

Instantly share code, notes, and snippets.

View jeffsabarman's full-sized avatar
🎯
Focusing

Jeffrey Sabarman jeffsabarman

🎯
Focusing
View GitHub Profile
import pandas as pd
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
analyser = SentimentIntensityAnalyzer()
sentence1 = "I love this movie so much!"
sentence2 = "I hate this move so much!"
score1 = analyser.polarity_scores(sentence1)
score2 = analyser.polarity_scores(sentence2)