View Source GoogleApi.Translate.V3.Model.Example (google_api_translate v0.21.0)

A sentence pair.

Attributes

  • name (type: String.t, default: nil) - Output only. The resource name of the example, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}
  • sourceText (type: String.t, default: nil) - Sentence in source language.
  • targetText (type: String.t, default: nil) - Sentence in target language.
  • usage (type: String.t, default: nil) - Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Translate.V3.Model.Example{
  name: String.t() | nil,
  sourceText: String.t() | nil,
  targetText: String.t() | nil,
  usage: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.