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

Function subjectivity

pattern/text/xx/__init__.py:193–196  ·  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

191 return sentiment(s, **kwargs)[0]
192
193def subjectivity(s, **kwargs):
194 """ Returns the sentence subjectivity (objective/subjective) between 0.0 and 1.0.
195 """
196 return sentiment(s, **kwargs)[1]
197
198def positive(s, threshold=0.1, **kwargs):
199 """ Returns True if the given sentence has a positive sentiment.

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…