class documentation
class SentiText: (source)
Constructor: SentiText(text, punc_list, regex_remove_punctuation)
Identify sentiment-relevant string-level properties of input text.
| Method | __init__ |
Undocumented |
| Method | allcap |
Check whether just some words in the input are ALL CAPS |
| Instance Variable | is |
Undocumented |
| Instance Variable | PUNC |
Undocumented |
| Instance Variable | REGEX |
Undocumented |
| Instance Variable | text |
Undocumented |
| Instance Variable | words |
Undocumented |
| Method | _words |
Removes leading and trailing puncutation Leaves contractions and most emoticons |
| Method | _words |
Returns mapping of form: { |
Check whether just some words in the input are ALL CAPS
| Parameters | |
| words | Undocumented |
| list words | The words to inspect |
| Returns | |
True if some but not all items in words are ALL CAPS | |