Class AnalyzeSentimentResponse
The sentiment analysis response message.
Implements
Inherited Members
Namespace: Google.Apis.CloudNaturalLanguage.v2.Data
Assembly: Google.Apis.CloudNaturalLanguage.v2.dll
Syntax
public class AnalyzeSentimentResponse : IDirectResponseSchema
Properties
DocumentSentiment
The overall sentiment of the input document.
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 |
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 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. 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? |
Sentences
The sentiment for all the sentences in the document.
Declaration
[JsonProperty("sentences")]
public virtual IList<Sentence> Sentences { get; set; }
Property Value
Type | Description |
---|---|
IList<Sentence> |