NAME

Paws::Comprehend::SyntaxToken

USAGE

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(...);
  $result->Att1->BeginOffset

DESCRIPTION

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.

ATTRIBUTES

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.

SEE ALSO

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

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues