class documentation

class SentimentIntensityAnalyzer: (source)

Constructor: SentimentIntensityAnalyzer(lexicon_file)

View In Hierarchy

Give a sentiment intensity score to sentences.

Method __init__ Undocumented
Method make_lex_dict Convert lexicon file to a dictionary
Method polarity_scores Return a float for sentiment strength based on the input text. Positive values are positive valence, negative value are negative valence.
Method score_valence Undocumented
Method sentiment_valence Undocumented
Instance Variable constants Undocumented
Instance Variable lexicon Undocumented
Instance Variable lexicon_file Undocumented
Method _amplify_ep Undocumented
Method _amplify_qm Undocumented
Method _but_check Undocumented
Method _idioms_check Undocumented
Method _least_check Undocumented
Method _never_check Undocumented
Method _punctuation_emphasis Undocumented
Method _sift_sentiment_scores Undocumented
def __init__(self, lexicon_file='sentiment/vader_lexicon.zip/vader_lexicon/vader_lexicon.txt'): (source)

Undocumented

def make_lex_dict(self): (source)

Convert lexicon file to a dictionary

def polarity_scores(self, text): (source)

Return a float for sentiment strength based on the input text. Positive values are positive valence, negative value are negative valence.

def score_valence(self, sentiments, text): (source)

Undocumented

def sentiment_valence(self, valence, sentitext, item, i, sentiments): (source)

Undocumented

constants = (source)

Undocumented

Undocumented

lexicon_file = (source)

Undocumented

def _amplify_ep(self, text): (source)

Undocumented

def _amplify_qm(self, text): (source)

Undocumented

def _but_check(self, words_and_emoticons, sentiments): (source)

Undocumented

def _idioms_check(self, valence, words_and_emoticons, i): (source)

Undocumented

def _least_check(self, valence, words_and_emoticons, i): (source)

Undocumented

def _never_check(self, valence, words_and_emoticons, start_i, i): (source)

Undocumented

def _punctuation_emphasis(self, sum_s, text): (source)

Undocumented

def _sift_sentiment_scores(self, sentiments): (source)

Undocumented