Class: Aws::Comprehend::Types::KeyPhrase

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

Overview

Describes a key noun phrase.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#begin_offsetInteger

The zero-based offset from the beginning of the source text to the first character in the key phrase.

Returns:

  • (Integer)


5143
5144
5145
5146
5147
5148
5149
5150
# File 'lib/aws-sdk-comprehend/types.rb', line 5143

class KeyPhrase < Struct.new(
  :score,
  :text,
  :begin_offset,
  :end_offset)
  SENSITIVE = []
  include Aws::Structure
end

#end_offsetInteger

The zero-based offset from the beginning of the source text to the last character in the key phrase.

Returns:

  • (Integer)


5143
5144
5145
5146
5147
5148
5149
5150
# File 'lib/aws-sdk-comprehend/types.rb', line 5143

class KeyPhrase < Struct.new(
  :score,
  :text,
  :begin_offset,
  :end_offset)
  SENSITIVE = []
  include Aws::Structure
end

#scoreFloat

The level of confidence that Amazon Comprehend has in the accuracy of the detection.

Returns:

  • (Float)


5143
5144
5145
5146
5147
5148
5149
5150
# File 'lib/aws-sdk-comprehend/types.rb', line 5143

class KeyPhrase < Struct.new(
  :score,
  :text,
  :begin_offset,
  :end_offset)
  SENSITIVE = []
  include Aws::Structure
end

#textString

The text of a key noun phrase.

Returns:

  • (String)


5143
5144
5145
5146
5147
5148
5149
5150
# File 'lib/aws-sdk-comprehend/types.rb', line 5143

class KeyPhrase < Struct.new(
  :score,
  :text,
  :begin_offset,
  :end_offset)
  SENSITIVE = []
  include Aws::Structure
end