Module Values.DetectSentimentResponseSource

Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).

Sourcetype nonrec t = {
  1. sentiment : SentimentType.t option;
    (*

    The inferred sentiment that Amazon Comprehend has the highest level of confidence in.

    *)
  2. sentimentScore : SentimentScore.t option;
    (*

    An object that lists the sentiments, and their corresponding confidence levels.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalServerException of InternalServerException.t
  2. | `InvalidRequestException of InvalidRequestException.t
  3. | `TextSizeLimitExceededException of TextSizeLimitExceededException.t
  4. | `UnsupportedLanguageException of UnsupportedLanguageException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?sentiment:??? -> ?sentimentScore:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `Unknown_operation_error of string * string option | `UnsupportedLanguageException of UnsupportedLanguageException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `Unknown_operation_error of string * string option | `UnsupportedLanguageException of UnsupportedLanguageException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `Float of Float_.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t