Class: Aws::Comprehend::Types::SyntaxToken
- Inherits:
-
Struct
- Object
- Struct
- Aws::Comprehend::Types::SyntaxToken
- Includes:
- Structure
- Defined in:
- 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
-
#begin_offset ⇒ Integer
The zero-based offset from the beginning of the source text to the first character in the word.
-
#end_offset ⇒ Integer
The zero-based offset from the beginning of the source text to the last character in the word.
-
#part_of_speech ⇒ Types::PartOfSpeechTag
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified.
-
#text ⇒ String
The word that was recognized in the source text.
-
#token_id ⇒ Integer
A unique identifier for a token.
Instance Attribute Details
#begin_offset ⇒ Integer
The zero-based offset from the beginning of the source text to the first character in the word.
8138 8139 8140 8141 8142 8143 8144 8145 8146 |
# File '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_offset ⇒ Integer
The zero-based offset from the beginning of the source text to the last character in the word.
8138 8139 8140 8141 8142 8143 8144 8145 8146 |
# File '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_speech ⇒ Types::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.
[1]: docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html
8138 8139 8140 8141 8142 8143 8144 8145 8146 |
# File '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 |
#text ⇒ String
The word that was recognized in the source text.
8138 8139 8140 8141 8142 8143 8144 8145 8146 |
# File '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_id ⇒ Integer
A unique identifier for a token.
8138 8139 8140 8141 8142 8143 8144 8145 8146 |
# File '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 |