Interface SentimentDataOrBuilder (2.24.0)

public interface SentimentDataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMagnitude()

public abstract float getMagnitude()

A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.

float magnitude = 1;

Returns
TypeDescription
float

The magnitude.

getScore()

public abstract float getScore()

The sentiment score between -1.0 (negative) and 1.0 (positive).

float score = 2;

Returns
TypeDescription
float

The score.