Module Values.ToxicLabelsSource

Toxicity analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

Sourcetype nonrec t = {
  1. labels : ListOfToxicContent.t option;
    (*

    Array of toxic content types identified in the string.

    *)
  2. toxicity : Float_.t option;
    (*

    Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.

    *)
}
Sourceval make : ?labels:??? -> ?toxicity:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Float of Float_.t | `List of [> `Structure of (string * [> `Enum of string | `Float of Float_.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