UNPKG

1.07 kBMarkdownView Raw
1# affectimo
2
3Analyse the affect (sentiment / valence) and intensity (arousal) of a string.
4
5## Usage
6```Javascript
7const affectimo = require('affectimo');
8const text = "A big long string of text...";
9let ai = affectimo(text);
10console.log(ai)
11```
12
13## Output
14```Javascript
15{
16 'AFFECT': 5.34,
17 'INTENSITY': 2.83
18}
19```
20Affect range: 1 = very negative, 5 = neutral, 9 = very positive.
21
22Intensity range: 1 = neutral/objective, to 9 = very high.
23
24## Acknowledgements
25
26### References
27Sedoc J., Preotiuc-Pietro D. & Ungar, L. (2017). Predicting Emotional Word Ratings using Distributional Representations and Signed Clustering. Proceedings of the 14th Conference of the European Chapter of the Association for Computational Linguistics, EACL.
28
29### Lexicon
30Using the affect/intensity lexicon data from http://www.wwbp.org/lexica.html
31
32Used under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported licence
33
34# Licence
35(C) 2017 P. Hughes
36[Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported](http://creativecommons.org/licenses/by-nc-sa/3.0/)