Class DocumentsResource
The "documents" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudNaturalLanguage.v2
Assembly: Google.Apis.CloudNaturalLanguage.v2.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, probability, 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 |
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 |
AnnotateText(AnnotateTextRequest)
A convenience method that provides all 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 |