This class represents one of two things:

Arguments in a call to a service

Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.

As an example, if Att1 is expected to be a Paws::Comprehend::SyntaxToken object:

  $service_obj->Method(Att1 => { BeginOffset => $value, ..., TokenId => $value  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::Comprehend::SyntaxToken object:

  $result = $service_obj->Method(...);


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.


BeginOffset => Int

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

EndOffset => Int

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

PartOfSpeech => Paws::Comprehend::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.

Text => Str

  The word that was recognized in the source text.

TokenId => Int

  A unique identifier for a token.


This class forms part of Paws, describing an object used in Paws::Comprehend


The source code is located here:

Please report bugs to: