Class: Aws::Comprehend::Types::SyntaxToken

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

Overview

Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text.

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 word.

Returns:

  • (Integer)


8138
8139
8140
8141
8142
8143
8144
8145
8146
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8138

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

#end_offsetInteger

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

Returns:

  • (Integer)


8138
8139
8140
8141
8142
8143
8144
8145
8146
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8138

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

#part_of_speechTypes::PartOfSpeechTag

Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see Syntax in the Comprehend Developer Guide.



8138
8139
8140
8141
8142
8143
8144
8145
8146
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8138

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

#textString

The word that was recognized in the source text.

Returns:

  • (String)


8138
8139
8140
8141
8142
8143
8144
8145
8146
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8138

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

#token_idInteger

A unique identifier for a token.

Returns:

  • (Integer)


8138
8139
8140
8141
8142
8143
8144
8145
8146
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8138

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