Show / Hide Table of Contents

Class NSSentiment

Syntax

Constructors

NSSentiment()

Initializes a new instance of the NSSentiment class.

Declaration
NSSentiment

Methods

GetConfidence()

Declaration
Integer GetConfidence()
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
Integer GetScore()
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
Type Description
Void
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
Type Description
Void
Examples
NSSentiment thing;
Integer score;
thing.SetScore(score);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top