You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Comprehend::Types::PartOfSpeechTag

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Identifies the part of speech represented by the token and gives the confidence that Amazon Comprehend has that the part of speech was correctly identified. For more information about the parts of speech that Amazon Comprehend can identify, see how-syntax.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#scoreFloat

The confidence that Amazon Comprehend has that the part of speech was correctly identified.

Returns:

  • (Float)

    The confidence that Amazon Comprehend has that the part of speech was correctly identified.

#tagString

Identifies the part of speech that the token represents.

Possible values:

  • ADJ
  • ADP
  • ADV
  • AUX
  • CONJ
  • CCONJ
  • DET
  • INTJ
  • NOUN
  • NUM
  • O
  • PART
  • PRON
  • PROPN
  • PUNCT
  • SCONJ
  • SYM
  • VERB

Returns:

  • (String)

    Identifies the part of speech that the token represents.