Smaws_Client_Comprehend.DetectSentimentInspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `TextSizeLimitExceededException of Types.text_size_limit_exceeded_exception
| `UnsupportedLanguageException of Types.unsupported_language_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.detect_sentiment_request ->
(Types.detect_sentiment_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `TextSizeLimitExceededException of
Types.text_size_limit_exceeded_exception
| `UnsupportedLanguageException of Types.unsupported_language_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.detect_sentiment_request ->
(Types.detect_sentiment_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `TextSizeLimitExceededException of
Types.text_size_limit_exceeded_exception
| `UnsupportedLanguageException of Types.unsupported_language_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result