Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.23 KB

File metadata and controls

32 lines (22 loc) · 1.23 KB

Getting Started with Google Cloud Natural Language API and the Google Cloud Client libraries

Open in Cloud Shell

Google Cloud Natural Language API provides natural language understanding technologies to developers, including sentiment analysis, entity recognition, and syntax analysis. This API is part of the larger collection of Cloud Machine Learning APIs.

These sample Java applications demonstrate how to access the Cloud Natural Language API using the Google Cloud Client Library for Java.

Quickstart

Install Maven.

Build your project with:

mvn clean compile assembly:single

Analyze a string for sentiment (using the quickstart sample)

java -jar target/language-google-cloud-samples-1.0.9-jar-with-dependencies.jar \
    com.example.language.QuickstartSample