Class DocumentsResource
The "documents" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudNaturalLanguage.v1beta2
Assembly: Google.Apis.CloudNaturalLanguage.v1beta2.dll
Syntax
public class DocumentsResource
Constructors
DocumentsResource(IClientService)
Constructs a new resource.
Declaration
public DocumentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AnalyzeEntities(AnalyzeEntitiesRequest)
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
Declaration
public virtual DocumentsResource.AnalyzeEntitiesRequest AnalyzeEntities(AnalyzeEntitiesRequest body)
Parameters
Type | Name | Description |
---|---|---|
AnalyzeEntitiesRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
DocumentsResource.AnalyzeEntitiesRequest |
AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest)
Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
Declaration
public virtual DocumentsResource.AnalyzeEntitySentimentRequest AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest body)
Parameters
Type | Name | Description |
---|---|---|
AnalyzeEntitySentimentRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
DocumentsResource.AnalyzeEntitySentimentRequest |
AnalyzeSentiment(AnalyzeSentimentRequest)
Analyzes the sentiment of the provided text.
Declaration
public virtual DocumentsResource.AnalyzeSentimentRequest AnalyzeSentiment(AnalyzeSentimentRequest body)
Parameters
Type | Name | Description |
---|---|---|
AnalyzeSentimentRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
DocumentsResource.AnalyzeSentimentRequest |
AnalyzeSyntax(AnalyzeSyntaxRequest)
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
Declaration
public virtual DocumentsResource.AnalyzeSyntaxRequest AnalyzeSyntax(AnalyzeSyntaxRequest body)
Parameters
Type | Name | Description |
---|---|---|
AnalyzeSyntaxRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
DocumentsResource.AnalyzeSyntaxRequest |
AnnotateText(AnnotateTextRequest)
A convenience method that provides all syntax, sentiment, entity, and classification features in one call.
Declaration
public virtual DocumentsResource.AnnotateTextRequest AnnotateText(AnnotateTextRequest body)
Parameters
Type | Name | Description |
---|---|---|
AnnotateTextRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
DocumentsResource.AnnotateTextRequest |
ClassifyText(ClassifyTextRequest)
Classifies a document into categories.
Declaration
public virtual DocumentsResource.ClassifyTextRequest ClassifyText(ClassifyTextRequest body)
Parameters
Type | Name | Description |
---|---|---|
ClassifyTextRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
DocumentsResource.ClassifyTextRequest |
ModerateText(ModerateTextRequest)
Moderates a document for harmful and sensitive categories.
Declaration
public virtual DocumentsResource.ModerateTextRequest ModerateText(ModerateTextRequest body)
Parameters
Type | Name | Description |
---|---|---|
ModerateTextRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
DocumentsResource.ModerateTextRequest |