def demo_vader_instance(text):
 from nltk.sentiment import SentimentIntensityAnalyzer
 vader_analyzer = SentimentIntensityAnalyzer()
 print vader_analyzer.polarity_scores(text)

def demo_vader_instance ( text ) : from nltk . sentiment import SentimentIntensityAnalyzer vader_analyzer = SentimentIntensityAnalyzer ( ) print vader_analyzer . polarity_scores ( text )
output polarity scores for a text using vader approach .