Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SentimentResponse

import type { SentimentResponse } from "https://aws-api.deno.dev/v0.4/services/lexruntime.ts?docs=full";

The sentiment expressed in an utterance.

When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.

interface SentimentResponse {
sentimentLabel?: string | null;
sentimentScore?: string | null;
}

§Properties

§
sentimentLabel?: string | null
[src]

The inferred sentiment that Amazon Comprehend has the highest confidence in.

§
sentimentScore?: string | null
[src]

The likelihood that the sentiment was correctly inferred.