View Source GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsSentimentSentimentEntitySentimentAnnotationMentionSentimentAnnotation (google_api_content_warehouse v0.4.0)

A mention level sentiment annotation containing the sentiment values for a single entity mention. // Next tag: 6.

Attributes

  • endToken (type: String.t, default: nil) - Token end index in corresponding SAFT document (inclusive).
  • magnitude (type: number(), default: nil) - Total magnitude of the sentiment.
  • polarity (type: number(), default: nil) - Polarity of the sentiment. See above for detail.
  • score (type: number(), default: nil) - The per mention score between -1.0 and 1.0. Combines the signal from polarity and magnitude values.
  • startToken (type: String.t, default: nil) - Token start index in corresponding SAFT document.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsSentimentSentimentEntitySentimentAnnotationMentionSentimentAnnotation{
    endToken: String.t() | nil,
    magnitude: number() | nil,
    polarity: number() | nil,
    score: number() | nil,
    startToken: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.