Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 981 Bytes

File metadata and controls

29 lines (20 loc) · 981 Bytes

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

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 -cp target/language-google-cloud-samples-1.0.0-jar-with-dependencies.jar \
    com.example.language.QuickstartSample