Returns the sentence polarity (positive/negative) between -1.0 and 1.0.
(s, **kwargs)
| 163 | return spelling.suggest(w) |
| 164 | |
| 165 | def polarity(s, **kwargs): |
| 166 | """ Returns the sentence polarity (positive/negative) between -1.0 and 1.0. |
| 167 | """ |
| 168 | return sentiment(s, **kwargs)[0] |
| 169 | |
| 170 | def subjectivity(s, **kwargs): |
| 171 | """ Returns the sentence subjectivity (objective/subjective) between 0.0 and 1.0. |