Returns True if the given sentence has a positive sentiment (polarity >= threshold).
(s, threshold=0.1, **kwargs)
| 209 | return sentiment(s, **kwargs)[1] |
| 210 | |
| 211 | def positive(s, threshold=0.1, **kwargs): |
| 212 | """ Returns True if the given sentence has a positive sentiment (polarity >= threshold). |
| 213 | """ |
| 214 | return polarity(s, **kwargs) >= threshold |
| 215 | |
| 216 | #--------------------------------------------------------------------------------------------------- |
| 217 | # python -m pattern.fr xml -s "C'est l'exception qui confirme la règle." -OTCL |
nothing calls this directly
no test coverage detected
searching dependent graphs…