1.3.0 • Published 10 months ago
eyepkg v1.3.0
Eye - Sentiment Analysis Framework
Eye is an sentiment analysis library for JavaScript which has six different types of sentiment analyizing functions including multiple language support.
Installation
Install Eye with npm:
npm install eyepkg
Usage
Analyzing overall results:
var analyze = require('./lib/eye').analyze;
console.log(analyze('What the hell'));
analyze
returns positive
, negative
, happiness
, sadness
and negative and positive score comparison
Anaylzing positive score:
var positive = require('./lib/eye').positive;
console.log(positive('I am so happy'));
Analyzing negative score:
var negative = require('./lib/eye').negative;
console.log(negative('I am sick of this'));
Analyzing sadness score:
var sadness = require('./lib/eye').sadness;
console.log(sadness('What the hell'));
Analyzing happiness score:
var happiness = require('./lib/eye').happiness;
console.log(happiness('What the hell'));
Run tests
Tests are linked with makefile, so you can directly run tests using:
make test