public static final class LanguageServiceGrpc.LanguageServiceFutureStub extends io.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceFutureStub>
Provides text analysis operations such as sentiment analysis and entity recognition.
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse> |
analyzeEntities(com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest request)
Finds named entities (currently proper names and common nouns) in the text
along with entity types, salience, mentions for each entity, and
other properties.
|
com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse> |
analyzeEntitySentiment(com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest request)
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes
sentiment associated with each entity and its mentions.
|
com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnalyzeSentimentResponse> |
analyzeSentiment(com.google.cloud.language.v1beta2.AnalyzeSentimentRequest request)
Analyzes the sentiment of the provided text.
|
com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse> |
analyzeSyntax(com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest request)
Analyzes the syntax of the text and provides sentence boundaries and
tokenization along with part of speech tags, dependency trees, and other
properties.
|
com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnnotateTextResponse> |
annotateText(com.google.cloud.language.v1beta2.AnnotateTextRequest request)
A convenience method that provides all syntax, sentiment, entity, and
classification features in one call.
|
protected LanguageServiceGrpc.LanguageServiceFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.ClassifyTextResponse> |
classifyText(com.google.cloud.language.v1beta2.ClassifyTextRequest request)
Classifies a document into categories.
|
protected LanguageServiceGrpc.LanguageServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceFutureStub>public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnalyzeSentimentResponse> analyzeSentiment(com.google.cloud.language.v1beta2.AnalyzeSentimentRequest request)
Analyzes the sentiment of the provided text.
public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse> analyzeEntities(com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest request)
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse> analyzeEntitySentiment(com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest request)
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.
public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse> analyzeSyntax(com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest request)
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.ClassifyTextResponse> classifyText(com.google.cloud.language.v1beta2.ClassifyTextRequest request)
Classifies a document into categories.
public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.language.v1beta2.AnnotateTextResponse> annotateText(com.google.cloud.language.v1beta2.AnnotateTextRequest request)
A convenience method that provides all syntax, sentiment, entity, and classification features in one call.