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

Language

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

Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.

class Language {
constructor(client?: CredentialsClient, baseUrl?: string);
async documentsAnalyzeEntities(req: AnalyzeEntitiesRequest): Promise<AnalyzeEntitiesResponse>;
async documentsAnalyzeSentiment(req: AnalyzeSentimentRequest): Promise<AnalyzeSentimentResponse>;
async documentsAnnotateText(req: AnnotateTextRequest): Promise<AnnotateTextResponse>;
async documentsClassifyText(req: ClassifyTextRequest): Promise<ClassifyTextResponse>;
async documentsModerateText(req: ModerateTextRequest): Promise<ModerateTextResponse>;
}

§Constructors

§
new Language(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
documentsAnalyzeEntities(req: AnalyzeEntitiesRequest): Promise<AnalyzeEntitiesResponse>
[src]

Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.

§
documentsAnalyzeSentiment(req: AnalyzeSentimentRequest): Promise<AnalyzeSentimentResponse>
[src]

Analyzes the sentiment of the provided text.

§
documentsAnnotateText(req: AnnotateTextRequest): Promise<AnnotateTextResponse>
[src]

A convenience method that provides all features in one call.

§
documentsClassifyText(req: ClassifyTextRequest): Promise<ClassifyTextResponse>
[src]

Classifies a document into categories.

§
documentsModerateText(req: ModerateTextRequest): Promise<ModerateTextResponse>
[src]

Moderates a document for harmful and sensitive categories.