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

EntityMention

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

Represents a mention for an entity in the text. Currently, proper noun mentions are supported.

interface EntityMention {
probability?: number;
sentiment?: Sentiment;
text?: TextSpan;
type?: "TYPE_UNKNOWN" | "PROPER" | "COMMON";
}

§Properties

§
probability?: number
[src]

Probability score associated with the entity. The score shows the probability of the entity mention being the entity type. The score is in (0, 1] range.

§
sentiment?: Sentiment
[src]

For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.

§

The mention text.

§
type?: "TYPE_UNKNOWN" | "PROPER" | "COMMON"
[src]

The type of the entity mention.