Skip to content

ScoreSignBarConfig

ScoreSignBarConfig dataclass

Configuration for the bar colors of token contributions attributed by score sign.

The contributions (and bars) are attributed by whether a token's score is positive or negative, and whether that score reinforces or offsets the overall corpus-level difference between the reference and comparison.

Attributes:

Name Type Description
reinforce str

Color of bars where the token reinforces the overall difference, making its magnitude larger

offset str

Color of bars where the token offsets the overall difference, making its magnitude smaller

reinforce_symbol str

Symbol labeling the reinforcing contribution in the totals panels

offset_symbol str

Symbol labeling the offsetting contribution in the totals panels

Source