public static final class LanguageServiceGrpc.LanguageServiceStub extends io.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceStub>
Provides text analysis operations such as sentiment analysis and entity recognition.
| Modifier and Type | Method and Description |
|---|---|
void |
analyzeEntities(com.google.cloud.language.v1.AnalyzeEntitiesRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.language.v1.AnalyzeEntitiesResponse> responseObserver)
Finds named entities (currently proper names and common nouns) in the text
along with entity types, salience, mentions for each entity, and
other properties.
|
void |
analyzeSentiment(com.google.cloud.language.v1.AnalyzeSentimentRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.language.v1.AnalyzeSentimentResponse> responseObserver)
Analyzes the sentiment of the provided text.
|
void |
analyzeSyntax(com.google.cloud.language.v1.AnalyzeSyntaxRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.language.v1.AnalyzeSyntaxResponse> responseObserver)
Analyzes the syntax of the text and provides sentence boundaries and
tokenization along with part of speech tags, dependency trees, and other
properties.
|
void |
annotateText(com.google.cloud.language.v1.AnnotateTextRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.language.v1.AnnotateTextResponse> responseObserver)
A convenience method that provides all the features that analyzeSentiment,
analyzeEntities, and analyzeSyntax provide in one call.
|
protected LanguageServiceGrpc.LanguageServiceStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
protected LanguageServiceGrpc.LanguageServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceStub>public void analyzeSentiment(com.google.cloud.language.v1.AnalyzeSentimentRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.language.v1.AnalyzeSentimentResponse> responseObserver)
Analyzes the sentiment of the provided text.
public void analyzeEntities(com.google.cloud.language.v1.AnalyzeEntitiesRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.language.v1.AnalyzeEntitiesResponse> responseObserver)
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 void analyzeSyntax(com.google.cloud.language.v1.AnalyzeSyntaxRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.language.v1.AnalyzeSyntaxResponse> responseObserver)
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
public void annotateText(com.google.cloud.language.v1.AnnotateTextRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.language.v1.AnnotateTextResponse> responseObserver)
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.