To use the API, send a HTTP POST request to http://sentiment.vivekn.com/api/text/ with the "txt" key containing the text you want to classify

You will receive a JSON response of the form:

{ "result": { "sentiment" : "Positive", "confidence" : 3.422451 } }

New! A batch API has been added as the bottleneck for most of you will be in the network latency. To use it send a POST request with a JSON array of the texts you want to classify to http://sentiment.vivekn.com/api/batch/. You will receive another JSON array of responses (similar to the one above) corresponding to the same order as in the request. The maximum content size can be 1 MB per request.