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

interface ToxicLabels {
    Labels?: ToxicContent[];
    Toxicity?: number;
}

Properties

Properties

Labels?: ToxicContent[]

Array of toxic content types identified in the string.

Toxicity?: number

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