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

Method __init__

pattern/text/en/wordnet/__init__.py:371–376  ·  view source on GitHub ↗

A sentiment lexicon with scores from SentiWordNet. The value for each word is a tuple with values for polarity (-1.0-1.0), subjectivity (0.0-1.0) and intensity (0.5-2.0).

(self, path="SentiWordNet*.txt", language="en")

Source from the content-addressed store, hash-verified

369class SentiWordNet(Sentiment):
370
371 def __init__(self, path="SentiWordNet*.txt", language="en"):
372 """ A sentiment lexicon with scores from SentiWordNet.
373 The value for each word is a tuple with values for
374 polarity (-1.0-1.0), subjectivity (0.0-1.0) and intensity (0.5-2.0).
375 """
376 Sentiment.__init__(self, path=path, language=language)
377
378 def load(self):
379 # Backwards compatibility: look for SentiWordNet*.txt in:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected