REST Resource: projects.locations.datasets

Resource: Dataset

A dataset that hosts the examples (sentence pairs) used for translation models.

JSON representation
{
  "name": string,
  "displayName": string,
  "sourceLanguageCode": string,
  "targetLanguageCode": string,
  "exampleCount": integer,
  "trainExampleCount": integer,
  "validateExampleCount": integer,
  "testExampleCount": integer,
  "createTime": string,
  "updateTime": string
}
Fields
name

string

The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{locationId}/datasets/{datasetId}

displayName

string

The 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.

sourceLanguageCode

string

The BCP-47 language code of the source language.

targetLanguageCode

string

The BCP-47 language code of the target language.

exampleCount

integer

Output only. The number of examples in the dataset.

trainExampleCount

integer

Output only. Number of training examples (sentence pairs).

validateExampleCount

integer

Output only. Number of validation examples (sentence pairs).

testExampleCount

integer

Output only. Number of test examples (sentence pairs).

createTime

string (Timestamp format)

Output only. Timestamp when this dataset was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. Timestamp when this dataset was last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Methods

create

Creates a Dataset.

delete

Deletes a dataset and all of its contents.

exportData

Exports dataset's data to the provided output location.

get

Gets a Dataset.

importData

Import sentence pairs into translation Dataset.

list

Lists datasets.