class Aws::Comprehend::Types::SyntaxToken

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.

@!attribute [rw] token_id

A unique identifier for a token.
@return [Integer]

@!attribute [rw] text

The word that was recognized in the source text.
@return [String]

@!attribute [rw] begin_offset

The zero-based offset from the beginning of the source text to the
first character in the word.
@return [Integer]

@!attribute [rw] end_offset

The zero-based offset from the beginning of the source text to the
last character in the word.
@return [Integer]

@!attribute [rw] part_of_speech

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.
@return [Types::PartOfSpeechTag]

@see docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/SyntaxToken AWS API Documentation

Constants

SENSITIVE