Class: Aws::Comprehend::Types::ToxicLabels

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-comprehend/types.rb

Overview

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

[1]: docs.aws.amazon.com/comprehend/latest/dg/toxicity-detection.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#labelsArray<Types::ToxicContent>

Array of toxic content types identified in the string.

Returns:



8713
8714
8715
8716
8717
8718
# File 'lib/aws-sdk-comprehend/types.rb', line 8713

class ToxicLabels < Struct.new(
  :labels,
  :toxicity)
  SENSITIVE = []
  include Aws::Structure
end

#toxicityFloat

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

Returns:

  • (Float)


8713
8714
8715
8716
8717
8718
# File 'lib/aws-sdk-comprehend/types.rb', line 8713

class ToxicLabels < Struct.new(
  :labels,
  :toxicity)
  SENSITIVE = []
  include Aws::Structure
end