View Source GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsSentimentSentimentEntitySentimentAnnotation (google_api_content_warehouse v0.3.0)

An entity level sentiment annotation containing the sentiment values aggregated over all mentions of an entity. Next tag: 7.

Attributes

  • entityName (type: String.t, default: nil) - The representative entity name. This can be blank for cases when there is no explicit name like "I" or "it". The mentions' tokens can be used to get more details about each entity.
  • magnitude (type: number(), default: nil) - Total magnitude of the sentiment.
  • mentionSentiment (type: list(GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsSentimentSentimentEntitySentimentAnnotationMentionSentimentAnnotation.t), default: nil) -
  • mid (type: String.t, default: nil) - MID for this entity, if available.
  • polarity (type: number(), default: nil) - Polarity of the sentiment. See above for detail.
  • score (type: number(), default: nil) - The per entity score between -1.0 and 1.0. Combines the signal from polarity and magnitude values.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsSentimentSentimentEntitySentimentAnnotation{
    entityName: String.t() | nil,
    magnitude: number() | nil,
    mentionSentiment:
      [
        GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsSentimentSentimentEntitySentimentAnnotationMentionSentimentAnnotation.t()
      ]
      | nil,
    mid: String.t() | nil,
    polarity: number() | nil,
    score: number() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.