Class Sentiment
Represents the feeling associated with the entire text or entities in the text.
Inheritance
System.Object
Sentiment
Implements
Google.Apis.Requests.IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudNaturalLanguage.v1beta1.Data
Assembly: Google.Apis.CloudNaturalLanguage.v1beta1.dll
Syntax
public class Sentiment : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Magnitude
A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
Declaration
[JsonProperty("magnitude")]
public virtual float? Magnitude { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Single> |
Polarity
DEPRECATED FIELD - This field is being deprecated in favor of score. Please refer to our documentation at https://cloud.google.com/natural-language/docs for more information.
Declaration
[JsonProperty("polarity")]
public virtual float? Polarity { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Single> |
Score
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
Declaration
[JsonProperty("score")]
public virtual float? Score { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Single> |
Implements
Google.Apis.Requests.IDirectResponseSchema