public ServiceFuture<SentimentBatchResult> sentimentAsync(SentimentOptionalParameter sentimentOptionalParameter, final ServiceCallback<SentimentBatchResult> serviceCallback) {
        return ServiceFuture.fromResponse(sentimentWithServiceResponseAsync(sentimentOptionalParameter), serviceCallback);
    }
public ServiceFuture < SentimentBatchResult > sentimentAsync ( SentimentOptionalParameter sentimentOptionalParameter , final ServiceCallback < SentimentBatchResult > serviceCallback ) { return ServiceFuture . fromResponse ( sentimentWithServiceResponseAsync ( sentimentOptionalParameter ) , serviceCallback ) ; }
The API returns a numeric score between 0 and 1.
Scores close to 1 indicate positive sentiment, while scores close to 0 indicate negative sentiment. A score of 0.5 indicates the lack of sentiment (e.g. a factoid statement). See the &lt;a href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview#supported-languages"&gt;Text Analytics Documentation&lt;/a&gt; for details about the languages that are supported by sentiment analysis.

@param sentimentOptionalParameter the object representing the optional parameters to be set before calling this API
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object