Returns the sentence polarity (positive/negative) between -1.0 and 1.0.
(s, **kwargs)
| 186 | return tags |
| 187 | |
| 188 | def polarity(s, **kwargs): |
| 189 | """ Returns the sentence polarity (positive/negative) between -1.0 and 1.0. |
| 190 | """ |
| 191 | return sentiment(s, **kwargs)[0] |
| 192 | |
| 193 | def subjectivity(s, **kwargs): |
| 194 | """ Returns the sentence subjectivity (objective/subjective) between 0.0 and 1.0. |