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")
| 369 | class 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: |