Class: Aws::Comprehend::Types::DocumentLabel

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

Overview

Specifies one of the label or labels that categorize the document being analyzed.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the label.

Returns:

  • (String)


3336
3337
3338
3339
3340
3341
3342
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3336

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

#pageInteger

Page number where the label occurs. This field is present in the response only if your request includes the Byte parameter.

Returns:

  • (Integer)


3336
3337
3338
3339
3340
3341
3342
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3336

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

#scoreFloat

The confidence score that Amazon Comprehend has this label correctly attributed.

Returns:

  • (Float)


3336
3337
3338
3339
3340
3341
3342
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3336

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