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

Represents a reference that may be part of a larger compound reference. For example, "my brother's birthday" will have a subreference that may have references for "my brother".

Attributes

  • personalReferenceTypes (type: list(String.t), default: nil) - Type of reference. There may be multiple for a single reference (e.g. relationship and contact).
  • referenceScore (type: number(), default: nil) - Highest reference score for any references merged in this span.
  • relationshipLexicalInfo (type: GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata.t, default: nil) - Only set for unresolved relationship references and can be used to get the canonical word for the relationship (e.g. "mother") in TTS.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceReference{
  personalReferenceTypes: [String.t()] | nil,
  referenceScore: number() | nil,
  relationshipLexicalInfo:
    GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.