Sentiment Analysis in Python
Violeta Misheva
Data Scientist
Document level
Sentence level
Aspect level
The camera in this phone is pretty good but the battery life is disappointing.
nice:+2, good:+1, terrible: -3 ...
Today was a good day.
Today: 0, was:0, a:0, good:+1, day:0
Total valence: +1
text = "Today was a good day."
from textblob import TextBlob
my_valence = TextBlob(text)
my_valence.sentiment
Sentiment(polarity=0.7, subjectivity=0.6000000000000001)
Automated/Machine learning
Rule/lexicon-based
Sentiment Analysis in Python