Class NSSentiment
Syntax
Constructors
NSSentiment()
Initializes a new instance of the NSSentiment class.
Declaration
Methods
GetConfidence()
Declaration
Returns
Type |
Description |
Integer |
Sentiment analysis confidence, where available. 0 = no idea, 100 = perfectly confident, -1 = no confidence score available.
|
Examples
NSSentiment thing;
Integer confidence = thing.GetConfidence();
GetScore()
Declaration
Returns
Type |
Description |
Integer |
Sentiment score, -100 = very unhappy, 100 = very happy, 0 = no idea (not recognized).
|
Examples
NSSentiment thing;
Integer score = thing.GetScore();
SetConfidence(Integer)
Declaration
Void SetConfidence(Integer confidence)
Parameters
Type |
Name |
Description |
Integer |
confidence |
Sentiment analysis confidence, where available. 0 = no idea, 100 = perfectly confident, -1 = no confidence score available.
|
Returns
Examples
NSSentiment thing;
Integer confidence;
thing.SetConfidence(confidence);
SetScore(Integer)
Declaration
Void SetScore(Integer score)
Parameters
Type |
Name |
Description |
Integer |
score |
Sentiment score, -100 = very unhappy, 100 = very happy, 0 = no idea (not recognized).
|
Returns
Examples
NSSentiment thing;
Integer score;
thing.SetScore(score);