[BindServiceMethod(typeof(LanguageService), "BindService")]
public abstract class LanguageService.LanguageServiceBaseReference documentation and code samples for the Google Cloud Natural Language v1 API class LanguageService.LanguageServiceBase.
Base class for server-side implementations of LanguageService
Namespace
Google.Cloud.Language.V1Assembly
Google.Cloud.Language.V1.dll
Methods
AnalyzeEntities(AnalyzeEntitiesRequest, ServerCallContext)
public virtual Task<AnalyzeEntitiesResponse> AnalyzeEntities(AnalyzeEntitiesRequest request, ServerCallContext context)Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
| Parameters | |
|---|---|
| Name | Description |
request |
AnalyzeEntitiesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAnalyzeEntitiesResponse |
The response to send back to the client (wrapped by a task). |
AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest, ServerCallContext)
public virtual Task<AnalyzeEntitySentimentResponse> AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest request, ServerCallContext context)Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.
| Parameters | |
|---|---|
| Name | Description |
request |
AnalyzeEntitySentimentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAnalyzeEntitySentimentResponse |
The response to send back to the client (wrapped by a task). |
AnalyzeSentiment(AnalyzeSentimentRequest, ServerCallContext)
public virtual Task<AnalyzeSentimentResponse> AnalyzeSentiment(AnalyzeSentimentRequest request, ServerCallContext context)Analyzes the sentiment of the provided text.
| Parameters | |
|---|---|
| Name | Description |
request |
AnalyzeSentimentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAnalyzeSentimentResponse |
The response to send back to the client (wrapped by a task). |
AnalyzeSyntax(AnalyzeSyntaxRequest, ServerCallContext)
public virtual Task<AnalyzeSyntaxResponse> AnalyzeSyntax(AnalyzeSyntaxRequest request, ServerCallContext context)Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
| Parameters | |
|---|---|
| Name | Description |
request |
AnalyzeSyntaxRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAnalyzeSyntaxResponse |
The response to send back to the client (wrapped by a task). |
AnnotateText(AnnotateTextRequest, ServerCallContext)
public virtual Task<AnnotateTextResponse> AnnotateText(AnnotateTextRequest request, ServerCallContext context)A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
| Parameters | |
|---|---|
| Name | Description |
request |
AnnotateTextRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAnnotateTextResponse |
The response to send back to the client (wrapped by a task). |
ClassifyText(ClassifyTextRequest, ServerCallContext)
public virtual Task<ClassifyTextResponse> ClassifyText(ClassifyTextRequest request, ServerCallContext context)Classifies a document into categories.
| Parameters | |
|---|---|
| Name | Description |
request |
ClassifyTextRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskClassifyTextResponse |
The response to send back to the client (wrapped by a task). |
ModerateText(ModerateTextRequest, ServerCallContext)
public virtual Task<ModerateTextResponse> ModerateText(ModerateTextRequest request, ServerCallContext context)Moderates a document for harmful and sensitive categories.
| Parameters | |
|---|---|
| Name | Description |
request |
ModerateTextRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskModerateTextResponse |
The response to send back to the client (wrapped by a task). |