Skip to main content

datasets

Overview

Namedatasets
TypeResource
Idgoogle.translate.datasets

Fields

NameDatatypeDescription
namestringThe resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
testExampleCountintegerOutput only. Number of test examples (sentence pairs).
trainExampleCountintegerOutput only. Number of training examples (sentence pairs).
createTimestringOutput only. Timestamp when this dataset was created.
exampleCountintegerOutput only. The number of examples in the dataset.
targetLanguageCodestringThe BCP-47 language code of the target language.
displayNamestringThe name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
sourceLanguageCodestringThe BCP-47 language code of the source language.
updateTimestringOutput only. Timestamp when this dataset was last updated.
validateExampleCountintegerOutput only. Number of validation examples (sentence pairs).

Methods

NameAccessible byRequired ParamsDescription
projects_locations_datasets_getSELECTdatasetsId, locationsId, projectsIdGets a Dataset.
projects_locations_datasets_listSELECTlocationsId, projectsIdLists datasets.
projects_locations_datasets_createINSERTlocationsId, projectsIdCreates a Dataset.
projects_locations_datasets_deleteDELETEdatasetsId, locationsId, projectsIdDeletes a dataset and all of its contents.
_projects_locations_datasets_listEXEClocationsId, projectsIdLists datasets.
projects_locations_datasets_export_dataEXECdatasetsId, locationsId, projectsIdExports dataset's data to the provided output location.
projects_locations_datasets_import_dataEXECdatasetsId, locationsId, projectsIdImport sentence pairs into translation Dataset.