REST Resource: projects.datasets

Resource: Dataset

Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.

JSON representation
{
  "name": string,
  "displayName": string,
  "description": string,
  "createTime": string,
  "inputConfigs": [
    {
      object (InputConfig)
    }
  ],
  "blockingResources": [
    string
  ],
  "dataItemCount": string
}
Fields
name

string

Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}

displayName

string

Required. The display name of the dataset. Maximum of 64 characters.

description

string

Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.

createTime

string (Timestamp format)

Output only. Time the dataset is created.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

inputConfigs[]

object (InputConfig)

Output only. This is populated with the original input configs where datasets.importData is called. It is available only after the clients import data to this dataset.

blockingResources[]

string

Output only. The names of any related resources that are blocking changes to the dataset.

dataItemCount

string (int64 format)

Output only. The number of data items in the dataset.

InputConfig

The configuration of input data, including data type, location, etc.

JSON representation
{
  "dataType": enum (DataType),
  "textMetadata": {
    object (TextMetadata)
  },
  "gcsSource": {
    object (GcsSource)
  }
}
Fields
dataType

enum (DataType)

Required. Data type must be specifed when user tries to import data.

textMetadata

object (TextMetadata)

Required for text import, as language code must be specified.

gcsSource

object (GcsSource)

Source located in Cloud Storage.

TextMetadata

Metadata for the text.

JSON representation
{
  "languageCode": string
}
Fields
languageCode

string

The language of this text, as a BCP-47. Default value is en-US.

GcsSource

Source of the Cloud Storage file to be imported.

JSON representation
{
  "inputUri": string,
  "mimeType": string
}
Fields
inputUri

string

Required. The input URI of source file. This must be a Cloud Storage path (gs://...).

mimeType

string

Required. The format of the source file. Only "text/csv" is supported.

Methods

create

Creates dataset.

delete

Deletes a dataset by resource name.

exportData

Exports data and annotations from dataset.

get

Gets dataset by resource name.

importData

Imports data into dataset based on source locations defined in request.

list

Lists datasets under a project.
หน้านี้มีประโยชน์ไหม โปรดแสดงความคิดเห็น

ส่งความคิดเห็นเกี่ยวกับ...

หากต้องการความช่วยเหลือ ให้ไปที่หน้าการสนับสนุน