SentimentResult
Sentiment analysis result
result := System.NLP.SentimentAnalyzer->AnalyzeDetailed("Great product!");
score := result->GetScore();
label := result->GetClassification();Operations
GetClassification
Gets the classification label
method : public : GetClassification() ~ StringReturn
| Type | Description |
|---|---|
| String | classification (positive, negative, or neutral) |
GetScore
Gets the sentiment score
method : public : GetScore() ~ IntReturn
| Type | Description |
|---|---|
| Int | sentiment score |
New
Constructor
New(score:Int, classification:String)Parameters
| Name | Type | Description |
|---|---|---|
| score | Int | sentiment score |
| classification | String | sentiment label |
ToString
String representation
method : public : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | formatted result |