public static final class LanguageServiceGrpc.LanguageServiceBlockingStub extends AbstractBlockingStub<LanguageServiceGrpc.LanguageServiceBlockingStub>
Provides text analysis operations such as sentiment analysis and entity recognition.
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
AnalyzeEntitiesResponse |
analyzeEntities(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.
|
AnalyzeEntitySentimentResponse |
analyzeEntitySentiment(AnalyzeEntitySentimentRequest request)
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes
sentiment associated with each entity and its mentions.
|
AnalyzeSentimentResponse |
analyzeSentiment(AnalyzeSentimentRequest request)
Analyzes the sentiment of the provided text.
|
AnalyzeSyntaxResponse |
analyzeSyntax(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.
|
AnnotateTextResponse |
annotateText(AnnotateTextRequest request)
A convenience method that provides all the features that analyzeSentiment,
analyzeEntities, and analyzeSyntax provide in one call.
|
protected LanguageServiceGrpc.LanguageServiceBlockingStub |
build(Channel channel,
CallOptions callOptions) |
ClassifyTextResponse |
classifyText(ClassifyTextRequest request)
Classifies a document into categories.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected LanguageServiceGrpc.LanguageServiceBlockingStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<LanguageServiceGrpc.LanguageServiceBlockingStub>
public AnalyzeSentimentResponse analyzeSentiment(AnalyzeSentimentRequest request)
Analyzes the sentiment of the provided text.
public AnalyzeEntitiesResponse analyzeEntities(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 AnalyzeEntitySentimentResponse analyzeEntitySentiment(AnalyzeEntitySentimentRequest request)
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 AnalyzeSyntaxResponse analyzeSyntax(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 ClassifyTextResponse classifyText(ClassifyTextRequest request)
Classifies a document into categories.
public AnnotateTextResponse annotateText(AnnotateTextRequest request)
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
Copyright © 2022 Google LLC. All rights reserved.