sentiment140-nodejs-client

This is a NodeJS Client Library for the sentiment140 Natural Language Processing Service API

Replaced by sentiment140
Last updated 7 years ago by pmoelgaard .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sentiment140-nodejs-client 
SYNC missed versions from official npm registry.

This is an unofficial library allowing developers to easily interact with the Sentiment140 Natural Language Processing Service API.

Offical Website: http://www.sentiment140.com/
API Documentation: http://help.sentiment140.com/api


Sample Usage:

var Sentiment140 = require('sentiment140-nodejs-client');
var sentiment140 = new Sentiment140({
	auth: '[INSERT YOUR EMAIL HERE]'
});

var dataSimple = {
	"data": {
    	"id": 1,
    	"text": "I love Titanic.",
    	"query": "Titanic"
	}
}
sentiment140.sentiment(dataSimple, function(error, result) {
	console.log(JSON.stringify(result));
});

var dataBulk = {
	"data": [
   		{"text": "I love Titanic.", "id": 1 },
    	{"text": "I hate Titanic.", "id": 2 },
    	{"text": "I like Titanic.", "id": 3 }
	]
}
sentiment140.sentiment(dataBulk, function(error, result) {
	console.log(JSON.stringify(result));
});

Current Tags

  • 1.1.3                                ...           latest (7 years ago)

7 Versions

  • 1.1.3 [deprecated]           ...           7 years ago
  • 1.1.2 [deprecated]           ...           7 years ago
  • 1.1.1 [deprecated]           ...           7 years ago
  • 1.1.0 [deprecated]           ...           7 years ago
  • 1.0.2 [deprecated]           ...           7 years ago
  • 1.0.1 [deprecated]           ...           7 years ago
  • 1.0.0 [deprecated]           ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2021 © npmmirror.com |