AWSComprehendToxicLabels

Objective-C

@interface AWSComprehendToxicLabels

Swift

class AWSComprehendToxicLabels

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

  • Array of toxic content types identified in the string.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSComprehendToxicContent *> *_Nullable labels;

    Swift

    var labels: [AWSComprehendToxicContent]? { get set }
  • Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable toxicity;

    Swift

    var toxicity: NSNumber? { get set }