VADER Sentiment Analysis. VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media, and works well on texts from other domains.
MIT License
4.49k
stars
1.01k
forks
source link
Wrong sentiments returned when using Space character prefixed strings as input #107
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
text=SentimentIntensityAnalyzer()
Input Sample 1: (Please note the 'space' before the strings in input array. )
score = text.polarity_scores([" Nothing is going wrong", " Nothing is going wrong", " Nothing is going wrong"] )
Input Sample 2: (No 'space' before the strings in input array. )
score=text.polarity_scores(["Nothing is going wrong", "Nothing is going wrong", "Nothing is going wrong"] )
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer text=SentimentIntensityAnalyzer()
Input Sample 1: (Please note the 'space' before the strings in input array. ) score = text.polarity_scores([" Nothing is going wrong", " Nothing is going wrong", " Nothing is going wrong"] )
Input Sample 2: (No 'space' before the strings in input array. ) score=text.polarity_scores(["Nothing is going wrong", "Nothing is going wrong", "Nothing is going wrong"] )
Result of Sample 1:
Result of Sample 2: