SentimentBatchResultItem Class

SentimentBatchResultItem.

Inheritance
SentimentBatchResultItem

Constructor

SentimentBatchResultItem(*, id: Optional[str] = None, score: Optional[float] = None, statistics=None, **kwargs)

Parameters

id
str
Required

Unique, non-empty document identifier.

score
float
Required

A decimal number between 0 and 1 denoting the sentiment of the document. A score above 0.7 usually refers to a positive document while a score below 0.3 normally has a negative connotation. Mid values refer to neutral text.

statistics
DocumentStatistics
Required

(Optional) if showStats=true was specified in the request this field will contain information about the document payload.