annotated_datasets
Creates, updates, deletes, gets or lists a annotated_datasets
resource.
Overview
Name | annotated_datasets |
Type | Resource |
Id | google.datalabeling.annotated_datasets |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id} |
description | string | Output only. The description of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 10000 characters. |
annotationSource | string | Output only. Source of the annotation. |
annotationType | string | Output only. Type of the annotation. It is specified when starting labeling task. |
blockingResources | array | Output only. The names of any related resources that are blocking changes to the annotated dataset. |
completedExampleCount | string | Output only. Number of examples that have annotation in the annotated dataset. |
createTime | string | Output only. Time the AnnotatedDataset was created. |
displayName | string | Output only. The display name of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 64 characters. |
exampleCount | string | Output only. Number of examples in the annotated dataset. |
labelStats | object | Statistics about annotation specs. |
metadata | object | Metadata on AnnotatedDataset. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_datasets_annotated_datasets_get | SELECT | annotatedDatasetsId, datasetsId, projectsId | Gets an annotated dataset by resource name. |
projects_datasets_annotated_datasets_list | SELECT | datasetsId, projectsId | Lists annotated datasets for a dataset. Pagination is supported. |
projects_datasets_annotated_datasets_delete | DELETE | annotatedDatasetsId, datasetsId, projectsId | Deletes an annotated dataset by resource name. |
SELECT
examples
Lists annotated datasets for a dataset. Pagination is supported.
SELECT
name,
description,
annotationSource,
annotationType,
blockingResources,
completedExampleCount,
createTime,
displayName,
exampleCount,
labelStats,
metadata
FROM google.datalabeling.annotated_datasets
WHERE datasetsId = '{{ datasetsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified annotated_datasets
resource.
/*+ delete */
DELETE FROM google.datalabeling.annotated_datasets
WHERE annotatedDatasetsId = '{{ annotatedDatasetsId }}'
AND datasetsId = '{{ datasetsId }}'
AND projectsId = '{{ projectsId }}';