MCPcopy Index your code
hub / github.com/clips/pattern / Score

Class Score

pattern/text/__init__.py:1490–1498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1488 return sum(list) / float(len(list) or 1)
1489
1490class Score(tuple):
1491
1492 def __new__(self, polarity, subjectivity, assessments=[]):
1493 """ A (polarity, subjectivity)-tuple with an assessments property.
1494 """
1495 return tuple.__new__(self, [polarity, subjectivity])
1496
1497 def __init__(self, polarity, subjectivity, assessments=[]):
1498 self.assessments = assessments
1499
1500class Sentiment(lazydict):
1501

Callers 1

__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…