Submitting labeling requests

Once your project includes the dataset, annotation specification set, and instructions, you are ready to start the labeling task.

The AI Platform Data Labeling Service supports labeling of three types of data: images, video, and text. See Stage the unlabeled data for information about the supported formats. The human labelers' task is different for each data type, so the information you need to supply when you submit the labeling request is different too.

Select the type of data you want to have labeled from the list below.

The labeling request is a long-running operation. When you submit a request, the response includes the operation ID, which you can use to check the status of the request.

In the command below, replace operation-name with the full name of the operation in the response. The full name has the format projects/{project-id}/locations/us-central1/operations/{operation-id}.

curl \
  -X GET \
  -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \
  -H "Content-Type: application/json" \
  https://datalabeling.googleapis.com/v1beta1/operation-name

When the labeling is complete, the response includes the value "done": true.

{"response":
{"importCount": 3, "@type": "type.googleapis.com/google.cloud.data-labeling.v1alpha1.ImportDataOperationResponse", "dataset": "projects/google.com:labelingapitesting/datasets/5bae76a9_0000_22cf_a7d6_089e083237f4"},
"done": true,
"name": "projects/google.com:labelingapitesting/operations/5bae7811_0000_2eef_8327_94eb2c1eab5c",
"metadata": {"@type": "type.googleapis.com/google.cloud.data-labeling.v1alpha1.ImportDataOperationMetadata", "dataset": "projects/google.com:labelingapitesting/datasets/5bae76a9_0000_22cf_a7d6_089e083237f4"}
}
หน้านี้มีประโยชน์ไหม โปรดแสดงความคิดเห็น

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

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