Class NSSentiment

Constructors

NSSentiment()

Initializes a new instance of the NSSentiment class.

Declaration

NSSentiment

Methods

GetConfidence()

Declaration

Integer GetConfidence()

Examples

NSSentiment thing;
Integer confidence = thing.GetConfidence();

Returns

Type Description
Integer Sentiment analysis confidence, where available. 0 = no idea, 100 = perfectly confident, -1 = no confidence score available.

GetScore()

Declaration

Integer GetScore()

Examples

NSSentiment thing;
Integer score = thing.GetScore();

Returns

Type Description
Integer Sentiment score, -100 = very unhappy, 100 = very happy, 0 = no idea (not recognized).

SetConfidence(Integer)

Declaration

Void SetConfidence(Integer confidence)

Examples

NSSentiment thing;
Integer confidence;
thing.SetConfidence(confidence);

Parameters

Type Name Description
Integer confidence Sentiment analysis confidence, where available. 0 = no idea, 100 = perfectly confident, -1 = no confidence score available.

Returns

Type Description
Void

SetScore(Integer)

Declaration

Void SetScore(Integer score)

Examples

NSSentiment thing;
Integer score;
thing.SetScore(score);

Parameters

Type Name Description
Integer score Sentiment score, -100 = very unhappy, 100 = very happy, 0 = no idea (not recognized).

Returns

Type Description
Void