Class Example (3.19.0)

Example(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A sentence pair.

Attributes

Name Description
name str
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}
source_text str
Sentence in source language.
target_text str
Sentence in target language.
usage str
Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.