ShiftBarConfig
ShiftBarConfig
dataclass
¶
Configuration for the bar colors of a word shift plot.
The bars indicate the kind of contribution each token makes. The prefixes more_of_* and
less_of_* indicate whether a token was used more or less in the comparison corpus versus the
reference corpus. The suffixes *_positive and *_negative indicate whether a token is
relatively positive or negative compared to the specified reference score. The bars
higher_score and lower_score indicate whether the token's score is higher or lower in the
comparison corpus. Each of these six primary bars also have a *_counteracted variant for when
the two base bars are opposite signs and partially cancel out
Attributes:
| Name | Type | Description |
|---|---|---|
more_of_negative |
str
|
Color of bars where the token is used more in the comparison and has a relatively negative score |
more_of_positive |
str
|
Color of bars where the token is used more in the comparison and has a relatively positive score |
less_of_positive |
str
|
Color of bars where the token is used less in the comparison and has a relatively positive score |
less_of_negative |
str
|
Color of bars where the token is used less in the comparison and has a relatively negative score |
lower_score |
str
|
Color of bars where the token's score is lower in the comparison than the reference |
higher_score |
str
|
Color of bars where the token's score is higher in the comparison than the reference |
lower_score_counteracted |
str
|
Color of bars where the |
higher_score_counteracted |
str
|
Color of bars where the |
more_of_negative_counteracted |
str
|
Color of bars where the |
more_of_positive_counteracted |
str
|
Color of bars where the |
less_of_positive_counteracted |
str
|
Color of bars where the |
less_of_negative_counteracted |
str
|
Color of bars where the |
more_of_negative_symbol |
str
|
Symbol labeling the |
more_of_positive_symbol |
str
|
Symbol labeling the |
less_of_positive_symbol |
str
|
Symbol labeling the |
less_of_negative_symbol |
str
|
Symbol labeling the |
lower_score_symbol |
str
|
Symbol labeling the |
higher_score_symbol |
str
|
Symbol labeling the |