Class: Aws::Comprehend::Types::ToxicContent

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

Overview

Toxic content 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

#nameString

The name of the toxic content type.

Returns:

  • (String)


8687
8688
8689
8690
8691
8692
# File 'lib/aws-sdk-comprehend/types.rb', line 8687

class ToxicContent < Struct.new(
  :name,
  :score)
  SENSITIVE = []
  include Aws::Structure
end

#scoreFloat

Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.

Returns:

  • (Float)


8687
8688
8689
8690
8691
8692
# File 'lib/aws-sdk-comprehend/types.rb', line 8687

class ToxicContent < Struct.new(
  :name,
  :score)
  SENSITIVE = []
  include Aws::Structure
end