Returns the sentence polarity (positive/negative) between -1.0 and 1.0.
(s, **kwargs)
| 199 | return tags |
| 200 | |
| 201 | def polarity(s, **kwargs): |
| 202 | """ Returns the sentence polarity (positive/negative) between -1.0 and 1.0. |
| 203 | """ |
| 204 | return sentiment(s, **kwargs)[0] |
| 205 | |
| 206 | def subjectivity(s, **kwargs): |
| 207 | """ Returns the sentence subjectivity (objective/subjective) between 0.0 and 1.0. |