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

AnnotateTextResponse

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

The text annotations response message.

interface AnnotateTextResponse {
categories?: ClassificationCategory[];
documentSentiment?: Sentiment;
entities?: Entity[];
languageCode?: string;
languageSupported?: boolean;
moderationCategories?: ClassificationCategory[];
sentences?: Sentence[];
}

§Properties

§

Categories identified in the input document.

§
documentSentiment?: Sentiment
[src]

The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.

§
entities?: Entity[]
[src]

Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.

§
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 by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis.

§
moderationCategories?: ClassificationCategory[]
[src]

Harmful and sensitive categories identified in the input document.

§
sentences?: Sentence[]
[src]

Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.