MCPcopy Create free account
hub / github.com/clips/pattern / subjectivity

Function subjectivity

pattern/text/fr/__init__.py:206–209  ·  view source on GitHub ↗

Returns the sentence subjectivity (objective/subjective) between 0.0 and 1.0.

(s, **kwargs)

Source from the content-addressed store, hash-verified

204 return sentiment(s, **kwargs)[0]
205
206def subjectivity(s, **kwargs):
207 """ Returns the sentence subjectivity (objective/subjective) between 0.0 and 1.0.
208 """
209 return sentiment(s, **kwargs)[1]
210
211def positive(s, threshold=0.1, **kwargs):
212 """ Returns True if the given sentence has a positive sentiment (polarity >= threshold).

Callers

nothing calls this directly

Calls 1

sentimentClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…