class documentation

Identify sentiment-relevant string-level properties of input text.

Method __init__ Undocumented
Method allcap_differential Check whether just some words in the input are ALL CAPS
Instance Variable is_cap_diff Undocumented
Instance Variable PUNC_LIST Undocumented
Instance Variable REGEX_REMOVE_PUNCTUATION Undocumented
Instance Variable text Undocumented
Instance Variable words_and_emoticons Undocumented
Method _words_and_emoticons Removes leading and trailing puncutation Leaves contractions and most emoticons
Method _words_plus_punc Returns mapping of form: {
def __init__(self, text, punc_list, regex_remove_punctuation): (source)

Undocumented

def allcap_differential(self, words): (source)

Check whether just some words in the input are ALL CAPS

Parameters
wordsUndocumented
list wordsThe words to inspect
Returns
True if some but not all items in words are ALL CAPS
is_cap_diff = (source)

Undocumented

PUNC_LIST = (source)

Undocumented

REGEX_REMOVE_PUNCTUATION = (source)

Undocumented

Undocumented

words_and_emoticons = (source)

Undocumented

def _words_and_emoticons(self): (source)

Removes leading and trailing puncutation Leaves contractions and most emoticons

Does not preserve punc-plus-letter emoticons (e.g. :D)
def _words_plus_punc(self): (source)

Returns mapping of form: {

'cat,': 'cat', ',cat': 'cat',

}