Module Values.DetectToxicContentRequestSource

Performs toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

Sourcetype nonrec t = {
  1. textSegments : ListOfTextSegments.t;
    (*

    A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.

    *)
  2. languageCode : LanguageCode.t;
    (*

    The language of the input text. Currently, English is the only supported language.

    *)
}
Sourceval context_ : string
Sourceval make : textSegments:ListOfTextSegments.t -> languageCode:LanguageCode.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of CustomerInputString.t ]) list ] 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