1 | # affectimo
|
2 |
|
3 | Analyse the affect (sentiment / valence) and intensity (arousal) of a string.
|
4 |
|
5 | ## Usage
|
6 | ```Javascript
|
7 | const affectimo = require('affectimo');
|
8 | const text = "A big long string of text...";
|
9 | let ai = affectimo(text);
|
10 | console.log(ai)
|
11 | ```
|
12 |
|
13 | ## Output
|
14 | ```Javascript
|
15 | {
|
16 | 'AFFECT': 5.34,
|
17 | 'INTENSITY': 2.83
|
18 | }
|
19 | ```
|
20 | Affect range: 1 = very negative, 5 = neutral, 9 = very positive.
|
21 |
|
22 | Intensity range: 1 = neutral/objective, to 9 = very high.
|
23 |
|
24 | ## Acknowledgements
|
25 |
|
26 | ### References
|
27 | Sedoc 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
|
30 | Using the affect/intensity lexicon data from http://www.wwbp.org/lexica.html
|
31 |
|
32 | Used 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/)
|