Class AnnotateTextResponse
The text annotations response message.
Implements
Inherited Members
Namespace: Google.Apis.CloudNaturalLanguage.v2.Data
Assembly: Google.Apis.CloudNaturalLanguage.v2.dll
Syntax
public class AnnotateTextResponse : IDirectResponseSchema
Properties
Categories
Categories identified in the input document.
Declaration
[JsonProperty("categories")]
public virtual IList<ClassificationCategory> Categories { get; set; }
Property Value
Type | Description |
---|---|
IList<ClassificationCategory> |
DocumentSentiment
The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
Declaration
[JsonProperty("documentSentiment")]
public virtual Sentiment DocumentSentiment { get; set; }
Property Value
Type | Description |
---|---|
Sentiment |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Entities
Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities .
Declaration
[JsonProperty("entities")]
public virtual IList<Entity> Entities { get; set; }
Property Value
Type | Description |
---|---|
IList<Entity> |
LanguageCode
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language_code field for more details.
Declaration
[JsonProperty("languageCode")]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
LanguageSupported
Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis.
Declaration
[JsonProperty("languageSupported")]
public virtual bool? LanguageSupported { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ModerationCategories
Harmful and sensitive categories identified in the input document.
Declaration
[JsonProperty("moderationCategories")]
public virtual IList<ClassificationCategory> ModerationCategories { get; set; }
Property Value
Type | Description |
---|---|
IList<ClassificationCategory> |
Sentences
Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
Declaration
[JsonProperty("sentences")]
public virtual IList<Sentence> Sentences { get; set; }
Property Value
Type | Description |
---|---|
IList<Sentence> |