// Inspects text and returns an inference of the prevailing sentiment (POSITIVE,
// NEUTRAL, MIXED, or NEGATIVE).
Inspects text and returns an inference of the prevailing sentiment (POSITIVE,
NEUTRAL, MIXED, or NEGATIVE).
// Inspects text and returns an inference of the prevailing sentiment ( POSITIVE // NEUTRAL MIXED or NEGATIVE ) .
func (c *Client) DetectSentiment(ctx context.Context, params *DetectSentimentInput, optFns ...func(*Options)) (*DetectSentimentOutput, error) {
	if params == nil {
		params = &DetectSentimentInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DetectSentiment", params, optFns, addOperationDetectSentimentMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DetectSentimentOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DetectSentiment ( ctx context . Context , params * DetectSentimentInput , optFns ... func ( * Options ) ) ( * DetectSentimentOutput , error ) { if params == nil { params = & DetectSentimentInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDetectSentimentMiddlewares ) if err != nil { return nil , err } out := result . ( * DetectSentimentOutput ) out . ResultMetadata = metadata return out , nil }
Inspects text and returns an inference of the prevailing sentiment (POSITIVE,
NEUTRAL, MIXED, or NEGATIVE).
Inspects text and returns an inference of the prevailing sentiment ( POSITIVE NEUTRAL MIXED or NEGATIVE ) .