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

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

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

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