Client libraries

While you can use AutoML Natural Language by making direct requests, we provide client libraries for several popular languages. AutoML Natural Language client libraries are built on Google Cloud Client Libraries. This common infrastructure provides functionality for API-specific library implementations, but it also provides types and methods that you may use directly when using any Cloud API.

Available client libraries

AutoML Natural Language provides client libraries and guides for the following languages:

Python

This page provides reference documentation and related resources for the AutoML Natural Language Python client library.

Resource Description
Library reference AutoML Natural Language Python library reference
Language guide General guide for using Python with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Python

Installation

To install the client library:

pip install --upgrade google-cloud-automl

Java

This page provides reference documentation and related resources for the AutoML Natural Language Java client library.

Resource Description
Library reference AutoML Natural Language Java library reference
Language guide General guide for using Java with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Java

Installation

To install the client library:

If you are using Maven, add the following to your pom.xml file. For more information about BOMs, see The Google Cloud Platform Libraries BOM.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.google.cloud</groupId>
      <artifactId>libraries-bom</artifactId>
      <version>15.0.0</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>

<dependencies>
  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-automl</artifactId>
  </dependency>
  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-bigquery</artifactId>
  </dependency>
  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-storage</artifactId>
  </dependency>
</dependencies>

If you are using Gradle, add the following to your dependencies:

compile 'com.google.cloud:google-cloud-automl:1.3.0'

If you are using sbt, add the following to your dependencies:

libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "1.3.0"

If you're using IntelliJ or Eclipse, you can add client libraries to your project using the following IDE plugins:

The plugins provide additional functionality, such as key management for service accounts. Refer to each plugin's documentation for details.

Node.js

This page provides reference documentation and related resources for the AutoML Natural Language Node.js client library.

Resource Description
Library reference AutoML Natural Language Node.js library reference
Language guide General guide for using Node.js with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Node.js

Installation

To install the client library:

npm install --save @google-cloud/automl

C#

The C# client libraries for the AutoML Natural Language are currently released as Alpha.

This page provides reference documentation and related resources for the AutoML Natural Language C# client library.

Resource Description
Library reference AutoML Natural Language C# library reference
Language guide General guide for using C# with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and C#

Installation

To install the client library:

install-package Google.Cloud.AutoML.V1 -pre

Go

This page provides reference documentation and related resources for the AutoML Natural Language Go client library.

Resource Description
Library reference AutoML Natural Language Go library reference
Language guide General guide for using Go with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Go

Installation

To install the client library:

go get -u cloud.google.com/go/automl

PHP

This page provides reference documentation and related resources for the AutoML Natural Language PHP client library.

Resource Description
Library reference AutoML Natural Language PHP library reference
Language guide General guide for using PHP with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and PHP

Installation

To install the client library:

composer require google/cloud-automl

Ruby

The C# client libraries for AutoML Natural Language are currently released as Alpha.

This page provides reference documentation and related resources for the AutoML Natural Language Ruby client library.

Resource Description
Library reference AutoML Natural Language Ruby library reference
Language guide General guide for using Ruby with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Ruby

Installation

To install the client library:

gem install google-cloud-automl

Authentication and access control

The AutoML Natural Language quickstart guides provide basic information on authentication and access control. For more detailed information, see the following: