Show / Hide Table of Contents

Class SentimentSentence

Sentiment sentence object.

Inheritance
object
SentimentSentence
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.AilanguageService.Models
Assembly: OCI.DotNetSDK.Ailanguage.dll
Syntax
public class SentimentSentence

Properties

Length

Declaration
[JsonProperty(PropertyName = "length")]
public int? Length { get; set; }
Property Value
Type Description
int?

Length of sentence 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 sentence text.

Text

Declaration
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
Property Value
Type Description
string

Sentence text.

In this article
Back to top