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)


5194
5195
5196
5197
5198
5199
5200
5201
# File 'lib/aws-sdk-comprehend/types.rb', line 5194

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)


5194
5195
5196
5197
5198
5199
5200
5201
# File 'lib/aws-sdk-comprehend/types.rb', line 5194

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)


5194
5195
5196
5197
5198
5199
5200
5201
# File 'lib/aws-sdk-comprehend/types.rb', line 5194

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)


5194
5195
5196
5197
5198
5199
5200
5201
# File 'lib/aws-sdk-comprehend/types.rb', line 5194

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