This legacy version of AI Platform Data Labeling is deprecated and will no longer be available on Google Cloud after January 23, 2024. All the functionality of legacy AI Platform Data Labeling and new features are available on the Vertex AI platform. See Migrate to Vertex AI to learn how to migrate your resources.

Client libraries

Python and Java client libraries are available for AI Platform Data Labeling Service.

Download the client libraries

Python

Follow the Python Client for Data Labeling API instructions to install the Python client library.

Java

Follow the Google Cloud Java Client for Cloud Data Labeling instructions to install the Java client library.

Use the client library

Python

To include the Python client library in your code, add the following import statement.

from google.cloud import datalabeling_v1beta1 as datalabeling

Java

To include the Java client library in your code, add the following to your pom.xml file.

<dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-datalabeling</artifactId>
  <version>0.80.1-alpha-SNAPSHOT</version>
</dependency>