Returns True if the given sentence has a positive sentiment.
(s, threshold=0.1, **kwargs)
| 196 | return sentiment(s, **kwargs)[1] |
| 197 | |
| 198 | def positive(s, threshold=0.1, **kwargs): |
| 199 | """ Returns True if the given sentence has a positive sentiment. |
| 200 | """ |
| 201 | return polarity(s, **kwargs) >= threshold |
| 202 | |
| 203 | #print parse("The happy cat sat on the mat.", lemmata=True) |
| 204 | #print singularize("cats") |
nothing calls this directly
no test coverage detected
searching dependent graphs…