REST Resource: projects.instructions

Resource: Instruction

Instruction of how to perform the labeling task for human operators. Currently two types of instruction are supported - CSV file and PDF. One of the two types instruction must be provided. CSV file is only supported for image classification task. Instructions for other task should be provided as PDF. For image classification, CSV and PDF can be provided at the same time.

JSON representation
{
  "name": string,
  "displayName": string,
  "description": string,
  "createTime": string,
  "updateTime": string,
  "dataType": enum (DataType),
  "csvInstruction": {
    object (CsvInstruction)
  },
  "pdfInstruction": {
    object (PdfInstruction)
  },
  "blockingResources": [
    string
  ]
}
Fields
name

string

Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}

displayName

string

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

description

string

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

createTime

string (Timestamp format)

Output only. Creation time of instruction.

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

updateTime

string (Timestamp format)

Output only. Last update time of instruction.

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

dataType

enum (DataType)

Required. The data type of this instruction.

csvInstruction

object (CsvInstruction)

One of CSV or PDF instruction is required. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format:

  • The first column is labeled data, such as an image reference, text.
  • The second column is comma separated labels associated with data.

pdfInstruction

object (PdfInstruction)

One of CSV or PDF instruction is required. Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.

blockingResources[]

string

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

CsvInstruction

Instruction from a CSV file.

JSON representation
{
  "gcsFileUri": string
}
Fields
gcsFileUri

string

CSV file for the instruction. Only gcs path is allowed.

PdfInstruction

Instruction from a PDF file.

JSON representation
{
  "gcsFileUri": string
}
Fields
gcsFileUri

string

PDF file for the instruction. Only gcs path is allowed.

Methods

create

Creates an instruction for how data should be labeled.

delete

Deletes an instruction object by resource name.

get

Gets an instruction by resource name.

list

Lists instructions for a project.
Cette page vous a-t-elle été utile ? Évaluez-la :

Envoyer des commentaires concernant…

Data Labeling Service
Besoin d'aide ? Consultez notre page d'assistance.