Class SentimentAspect
Sentiment aspect object.
Inherited Members
Namespace: Oci.AilanguageService.Models
Assembly: OCI.DotNetSDK.Ailanguage.dll
Syntax
public class SentimentAspect
Properties
Length
Declaration
[JsonProperty(PropertyName = "length")]
public int? Length { get; set; }
Property Value
Type | Description |
---|---|
int? | Length of aspect text. |
Offset
Declaration
[JsonProperty(PropertyName = "offset")]
public int? Offset { get; set; }
Property Value
Type | Description |
---|---|
int? | The number of Unicode code points preceding this entity in the submitted text. |
Scores
Declaration
[JsonProperty(PropertyName = "scores")]
public Dictionary<string, double> Scores { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, double> | Scores or confidences for each sentiment. Example: {"positive": 1.0, "negative": 0.0} |
Sentiment
Declaration
[JsonProperty(PropertyName = "sentiment")]
public string Sentiment { get; set; }
Property Value
Type | Description |
---|---|
string | The highest-score sentiment for the aspect text. |
Text
Declaration
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string | Aspect text. |