Class Comprehend

A wrapper for Amazon Comprehend.

Constructors

Properties

client: ComprehendClient

Methods

  • Determines the dominant language of the input text.

    Parameters

    • params: {
          text: string;
      }
      • text: string

    Returns Promise<string>

  • Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).

    Parameters

    Returns Promise<Sentiment>