google_api_language v0.1.1 GoogleApi.Language.V1.Model.EntityMention View Source

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

Attributes

  • sentiment (Sentiment): 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. Defaults to: null.
  • text (TextSpan): The mention text. Defaults to: null.
  • type (String.t): The type of the entity mention. Defaults to: null.

    • Enum - one of [TYPE_UNKNOWN, PROPER, COMMON]

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.Language.V1.Model.EntityMention{
  sentiment: GoogleApi.Language.V1.Model.Sentiment.t(),
  text: GoogleApi.Language.V1.Model.TextSpan.t(),
  type: any()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.