SentiWord
SentiWord copied to clipboard
SentiWordNet based sentiment analysis for node.js focusing on accuracy and POS analysis.
var sw = require('sentiword'); var ex2 = sw("It is not good."); console.log(ex2); { sentiment: 0.25, avgSentiment: 0.25, objective: 0.5, positive: 0.375, negative: 0.125, ngrams: [ 'good' ], words: [ {...
It looks like the included sentiwordnet data is out of date. Is there a script you used to create the json data? "Hate" [should be](http://sentiwordnet.isti.cnr.it/search.php?q=hate): P: 0 O: 0.25 N:...
``` javascript var input = new Array(50).join('mom '); // mom mom mom mom ... console.log(sw(input).sentiment); // 42.875 ``` Because mom = 0.875 and 0.875 \* 49. ``` javascript console.log(sw("i distrust...