Returns the sentence polarity (positive/negative) between -1.0 and 1.0.
(s, **kwargs)
| 206 | return tags |
| 207 | |
| 208 | def polarity(s, **kwargs): |
| 209 | """ Returns the sentence polarity (positive/negative) between -1.0 and 1.0. |
| 210 | """ |
| 211 | return sentiment(s, **kwargs)[0] |
| 212 | |
| 213 | def subjectivity(s, **kwargs): |
| 214 | """ Returns the sentence subjectivity (objective/subjective) between 0.0 and 1.0. |