node-sentiwordnet

Sentiwordnet search nodejs and redis

npm install node-sentiwordnet
8 downloads in the last week
16 downloads in the last month

Description

SentiWordNet search module

Install


npm install node-sentiwordnet

Usage

If running for the first time then please wait for around 1 minute while the parser reads the dict file and enters the entries to

var SentiWN = require("node-sentiwordnet");
Senti = new SentiWN;


Senti.setDB(2);
Senti.redisSetEntries(function(callback){

});

After the redis entries are done, All is good to go

var SentiWN = require("node-sentiwordnet");
Senti = new SentiWN;

Senti.get("basipetal#1", function(callback){
    console.log(callback.POS);
    console.log(callback.ID);
    console.log(callback.NegScore);
    console.log(callback.Gloss);
    });
npm loves you