Skip navigation links

Package com.google.cloud.language.v1

A client to Cloud Natural Language API.

See: Description

Package com.google.cloud.language.v1 Description

A client to Cloud Natural Language API.

The interfaces provided are listed below, along with usage samples.

===================== LanguageServiceClient =====================

Service Description: Provides text analysis operations such as sentiment analysis and entity recognition.

Sample for LanguageServiceClient:

 
 try (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
   Document document = Document.newBuilder().build();
   EncodingType encodingType = EncodingType.NONE;
   AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document, encodingType);
 }
 
 
Skip navigation links

Copyright © 2019 Google LLC. All rights reserved.