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

A collection of any number of QRefAnnotations that designate a Copley Personal Reference and its Resolutions. This is used to handle personalized intents such as "navigate to my hotel" or "when is my mom's anniversary". See go/copley. This Annotation may contain only a reference with no resolutions for the failure case (go/copley-punts). TODO(bhorst) Rename this to remove the Copley codename.

Attributes

  • reference (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation.t, default: nil) - A Copley Personal Reference represents a user's reference to a something that could be personal entity, e.g. "my hotel", "mom", "brunch".
  • resolutions (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation.t), default: nil) - A Copley Personal Resolution represents the resolution of a Reference, e.g. if the user has a reservation at The Kendall Hotel, the reference "my hotel" could be resolved to The Kendall Hotel, and there would be a QRefAnnotation containing the mid and other data. It is possible for there to be zero resolutions for a given reference.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingPersonalReferenceAnnotation{
    reference:
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation.t()
      | nil,
    resolutions:
      [GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation.t()]
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.