public abstract static class LanguageServiceGrpc.LanguageServiceImplBase extends Object implements BindableService
Provides text analysis operations such as sentiment analysis and entity recognition.
Constructor and Description |
---|
LanguageServiceImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
analyzeEntities(AnalyzeEntitiesRequest request,
StreamObserver<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 |
analyzeEntitySentiment(AnalyzeEntitySentimentRequest request,
StreamObserver<AnalyzeEntitySentimentResponse> responseObserver)
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes
sentiment associated with each entity and its mentions.
|
void |
analyzeSentiment(AnalyzeSentimentRequest request,
StreamObserver<AnalyzeSentimentResponse> responseObserver)
Analyzes the sentiment of the provided text.
|
void |
analyzeSyntax(AnalyzeSyntaxRequest request,
StreamObserver<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(AnnotateTextRequest request,
StreamObserver<AnnotateTextResponse> responseObserver)
A convenience method that provides all the features that analyzeSentiment,
analyzeEntities, and analyzeSyntax provide in one call.
|
ServerServiceDefinition |
bindService() |
void |
classifyText(ClassifyTextRequest request,
StreamObserver<ClassifyTextResponse> responseObserver)
Classifies a document into categories.
|
public void analyzeSentiment(AnalyzeSentimentRequest request, StreamObserver<AnalyzeSentimentResponse> responseObserver)
Analyzes the sentiment of the provided text.
public void analyzeEntities(AnalyzeEntitiesRequest request, StreamObserver<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 analyzeEntitySentiment(AnalyzeEntitySentimentRequest request, StreamObserver<AnalyzeEntitySentimentResponse> responseObserver)
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.
public void analyzeSyntax(AnalyzeSyntaxRequest request, StreamObserver<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 classifyText(ClassifyTextRequest request, StreamObserver<ClassifyTextResponse> responseObserver)
Classifies a document into categories.
public void annotateText(AnnotateTextRequest request, StreamObserver<AnnotateTextResponse> responseObserver)
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
public final ServerServiceDefinition bindService()
bindService
in interface BindableService
Copyright © 2022 Google LLC. All rights reserved.