GoogleApi.Language.V1.Model.EntityMention (google_api_language v0.16.3)

View Source

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

Attributes

  • sentiment (type: GoogleApi.Language.V1.Model.Sentiment.t, default: nil) - 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.
  • text (type: GoogleApi.Language.V1.Model.TextSpan.t, default: nil) - The mention text.
  • type (type: String.t, default: nil) - The type of the entity mention.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Language.V1.Model.EntityMention{
  sentiment: GoogleApi.Language.V1.Model.Sentiment.t() | nil,
  text: GoogleApi.Language.V1.Model.TextSpan.t() | nil,
  type: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.