The MeaningCloud Sentiment Analysis API detects the sentiment of any text. Make calls to the REST API with GET or POST (POST is recommended) over HTTP/S with returns in JSON and XML. An API Key is required and available after signing up for an account with MeaningCloud. The SentimentAnalysis API determines whether a piece of text has positive, negative, or neutral sentiment by identifying the local polarity of the different sentences in the text and evaluating the relationship between. This results in a polarity value for the text as a whole. See the documentation for examples, code snippets, and a test console for getting familiar with the API.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
The MeaningCloud Sentiment Analysis Java Sample Code demonstrates how to use an HTTP client to make requests to the API that will display responses in return. With the API, developers can implement sentiment analysis features into applications.