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

Modifiers decorate a Meaning Expression (i.e. intent FunctionCall) with signals that depend on the source language's grammar and syntax. See go/intent-modifiers for details. NOTE: Modifiers don't necessarily impact go/intent-resolution semantics. LINT.IfChange

Attributes

  • alternateLanguage (type: String.t, default: nil) - Language of all of the non-annotation tokens of the query interpretation, if it is different than |language|. This can happen with English smearing, e.g. [height rousseau] will trigger as "fr" when issued in fr/FR, but really the language is "en". This can also happen when we have extra information about the language model, e.g. language="zh", alternate_language="zh-Hant".
  • definiteness (type: String.t, default: nil) -
  • language (type: String.t, default: nil) - Language of parsed query.
  • mood (type: String.t, default: nil) - Since there's only IMPERATIVE, consider using Marker.command instead.
  • plurality (type: String.t, default: nil) -
  • polarQuestion (type: boolean(), default: nil) - Whether or not the question is a polar (yes/no) question.
  • sentiment (type: GoogleApi.ContentWarehouse.V1.Model.SentimentSentiment.t, default: nil) - Sentiment analysis attached to an intent implies the sentiment user expressed behind that query. This is generated by the Empathetic Servlet in the QRewrite.
  • tense (type: String.t, default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersIntentModifiers{
  alternateLanguage: String.t() | nil,
  definiteness: String.t() | nil,
  language: String.t() | nil,
  mood: String.t() | nil,
  plurality: String.t() | nil,
  polarQuestion: boolean() | nil,
  sentiment: GoogleApi.ContentWarehouse.V1.Model.SentimentSentiment.t() | nil,
  tense: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.