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

AnalyzeSentimentResponse

import type { AnalyzeSentimentResponse } from "https://googleapis.deno.dev/v1/language:v2.ts";

The sentiment analysis response message.

interface AnalyzeSentimentResponse {
documentSentiment?: Sentiment;
languageCode?: string;
languageSupported?: boolean;
sentences?: Sentence[];
}

§Properties

§
documentSentiment?: Sentiment
[src]

The overall sentiment of the input document.

§
languageCode?: string
[src]

The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.

§
languageSupported?: boolean
[src]

Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis.

§
sentences?: Sentence[]
[src]

The sentiment for all the sentences in the document.