Class SentimentDocumentResult
The document response for sentiment detect call.
Inherited Members
Namespace: Oci.AilanguageService.Models
Assembly: OCI.DotNetSDK.Ailanguage.dll
Syntax
public class SentimentDocumentResult
Properties
Aspects
Declaration
[Required(ErrorMessage = "Aspects is required.")]
[JsonProperty(PropertyName = "aspects")]
public List<SentimentAspect> Aspects { get; set; }
Property Value
Type | Description |
---|---|
List<SentimentAspect> | List of detected aspects sentiment. |
Remarks
Required
DocumentScores
Declaration
[JsonProperty(PropertyName = "documentScores")]
public Dictionary<string, double> DocumentScores { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, double> | Scores for each sentiment. Example: {"positive": 1.0, "negative": 0.0} |
DocumentSentiment
Declaration
[JsonProperty(PropertyName = "documentSentiment")]
public string DocumentSentiment { get; set; }
Property Value
Type | Description |
---|---|
string | Document level sentiment. |
Key
Declaration
[Required(ErrorMessage = "Key is required.")]
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }
Property Value
Type | Description |
---|---|
string | Document unique identifier defined by the user. |
Remarks
Required
LanguageCode
Declaration
[Required(ErrorMessage = "LanguageCode is required.")]
[JsonProperty(PropertyName = "languageCode")]
public string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string | Language code supported
|
Remarks
Required
Sentences
Declaration
[JsonProperty(PropertyName = "sentences")]
public List<SentimentSentence> Sentences { get; set; }
Property Value
Type | Description |
---|---|
List<SentimentSentence> | List of detected sentences sentiment. |