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)


4924
4925
4926
4927
4928
4929
4930
4931
4932
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 4924

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)


4924
4925
4926
4927
4928
4929
4930
4931
4932
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 4924

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 how-syntax.



4924
4925
4926
4927
4928
4929
4930
4931
4932
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 4924

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)


4924
4925
4926
4927
4928
4929
4930
4931
4932
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 4924

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)


4924
4925
4926
4927
4928
4929
4930
4931
4932
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 4924

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