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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-comprehend/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.

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 'gems/aws-sdk-comprehend/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 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8713

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