Lexicon.SocialSent
Lexicon.SocialSent ¶
A set of English sentiment lexicons constructed for each decade from 1850 to 2000.
Each lexicon represents the inferred sentiment of the top 5,000 non-stop words from the Corpus of Historical American English.
Note
The first call for a given year downloads that lexicon from HuggingFace. Later calls for the same year read from the local cache, so each year is only ever downloaded once.
License
This data is made available under the Public Domain Dedication and License v1.0.
Citation
If you use this lexicon, please cite the following paper.
Hamilton, W. L., Clark, K., Leskovec, J., & Jurafsky, D. (2016). Inducing domain-specific sentiment lexicons from unlabeled corpora. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing (pp. 595-605).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
SocialSentYear
|
The year of the lexicon |
required |
Raises:
| Type | Description |
|---|---|
LexiconDownloadError
|
If the lexicon could not be downloaded from HuggingFace |