node-sentiwordnet

Sentiwordnet search nodejs and redis

SentiWordNet search module


npm install node-sentiwordnet

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);
    });