View Source GoogleApi.Language.V1.Model.Sentence (google_api_language v0.14.0)

Represents a sentence in the input document.

Attributes

  • sentiment (type: GoogleApi.Language.V1.Model.Sentiment.t, default: nil) - For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence.
  • text (type: GoogleApi.Language.V1.Model.TextSpan.t, default: nil) - The sentence text.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

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

Unwrap a decoded JSON object into its complex fields.