Returns True if the given sentence has a positive sentiment (polarity >= threshold).
(s, threshold=0.1, **kwargs)
| 216 | return sentiment(s, **kwargs)[1] |
| 217 | |
| 218 | def positive(s, threshold=0.1, **kwargs): |
| 219 | """ Returns True if the given sentence has a positive sentiment (polarity >= threshold). |
| 220 | """ |
| 221 | return polarity(s, **kwargs) >= threshold |
| 222 | |
| 223 | #--------------------------------------------------------------------------------------------------- |
| 224 | # python -m pattern.nl xml -s "De kat wil wel vis eten maar geen poot nat maken." -OTCL |
nothing calls this directly
no test coverage detected
searching dependent graphs…