Skip to main content

Entity-Level Sentiment

BRAD API v2.3.0 adds entitySentiments to most event responses. It complements the event-level sentiment score by showing how the text refers to each named entity.

See the BRAD API reference for endpoints, request parameters, and complete response schemas.

How it works

Sentiment is evaluated in the context of each named entity rather than across the event as a whole. When an entity appears more than once, BRAD aggregates the scores from all mentions into one sentiment profile.

Each profile includes likelihood scores for negative, neutral, and positive sentiment. Every score group contains these aggregates:

MetricRangeDescription
min0–1Lowest likelihood across the entity's mentions.
max0–1Highest likelihood across the entity's mentions.
avg0–1Average likelihood across the entity's mentions.

A value closer to 1 indicates stronger confidence in that sentiment. These values describe sentiment likelihood; they are not the same as the event-level sentiment score.

Response structure

entitySentiments is an array containing one object per evaluated entity.

FieldTypeDescription
namestringEntity name as identified in the event.
categorystringEntity category.
labelsstring[]Assigned labels: NEGATIVE, NEUTRAL, or POSITIVE.
negativeScoresobjectMinimum, maximum, and average negative likelihood.
neutralScoresobjectMinimum, maximum, and average neutral likelihood.
positiveScoresobjectMinimum, maximum, and average positive likelihood.

Example

{
"entitySentiments": [
{
"name": "Goldman Sachs",
"category": "banking",
"labels": ["NEUTRAL"],
"negativeScores": {
"min": 0.0008216507,
"max": 0.0037292289,
"avg": 0.00227544
},
"neutralScores": {
"min": 0.99622947,
"max": 0.99908435,
"avg": 0.99765694
},
"positiveScores": {
"min": 0.000041385654,
"max": 0.00009400846,
"avg": 0.00006769705
}
}
]
}

Interpretation

In this example, NEUTRAL is the assigned label and the neutral likelihood is consistently high across all mentions. The narrow gap between min and max also indicates that the sentiment is consistent across those mentions.