nlptest.transform.fairness#

Functions

get_gendered_data(data)

Split list of samples into gendered lists.

Classes

BaseFairness()

Abstract base class for implementing accuracy measures.

MaxGenderF1Score()

Subclass of BaseFairness that implements the maximum F1 score.

MinGenderF1Score()

Subclass of BaseFairness that implements the minimum F1 score.