Smaws_Client_Comprehend.BatchDetectSentimentInspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `BatchSizeLimitExceededException of
Types.batch_size_limit_exceeded_exception
| `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.batch_detect_sentiment_request ->
(Types.batch_detect_sentiment_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `BatchSizeLimitExceededException of
Types.batch_size_limit_exceeded_exception
| `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.batch_detect_sentiment_request ->
(Types.batch_detect_sentiment_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `BatchSizeLimitExceededException of
Types.batch_size_limit_exceeded_exception
| `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