High Quality Sentiment Analysis

sentimentHQ(data, {[apiKey]: String, [privateCloud]: String})
Highly accurate sentiment analysis but less performant than the standard Sentiment API. Note: Sentiment HQ only supports English analysis. For multilingual support, please use the standard Sentiment API.

Current Version: 1


data – String | List – required – text to be analyzed
[apiKey] – String – optional – your indico API key
[privateCloud] – String – optional – your private cloud subdomain
[v or version] – Integer – optional (defaults to 1) – specify model version


This function will return a number between 0 and 1. This number is a probability representing the likelihood that the analyzed text is positive or negative. Values greater than 0.5 indicate positive sentiment, while values less than 0.5 indicate negative sentiment.

// single output

// batch output


var indico = require('indico.io');
indico.apiKey =  'YOUR_API_KEY';

var response = function(res) { console.log(res); }
var logError = function(err) { console.log(err); }

// single example
indico.sentimentHQ("I love writing code!")

// batch example
var batchInput = [
    "I love writing code!",
    "Alexander and the Terrible, Horrible, No Good, Very Bad Day"