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

View Source

All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.

Attributes

  • classificationModelOptions (type: GoogleApi.Language.V1.Model.ClassificationModelOptions.t, default: nil) - Optional. The model options to use for classification. Defaults to v1 options if not specified. Only used if classify_text is set to true.
  • classifyText (type: boolean(), default: nil) - Classify the full document into categories.
  • extractDocumentSentiment (type: boolean(), default: nil) - Extract document-level sentiment.
  • extractEntities (type: boolean(), default: nil) - Extract entities.
  • extractEntitySentiment (type: boolean(), default: nil) - Extract entities and their associated sentiment.
  • extractSyntax (type: boolean(), default: nil) - Extract syntax information.
  • moderateText (type: boolean(), default: nil) - Moderate the document for harmful and sensitive categories.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Language.V1.Model.AnnotateTextRequestFeatures{
  classificationModelOptions:
    GoogleApi.Language.V1.Model.ClassificationModelOptions.t() | nil,
  classifyText: boolean() | nil,
  extractDocumentSentiment: boolean() | nil,
  extractEntities: boolean() | nil,
  extractEntitySentiment: boolean() | nil,
  extractSyntax: boolean() | nil,
  moderateText: boolean() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.