langtest.transform.utils.get_ethnicity_representation_dict#

get_ethnicity_representation_dict(data: List[Sample]) Dict[str, int]#
Parameters:

data (List[Sample]) – The input data to be evaluated for representation test.

Returns:

a dictionary containing ethnicity representation information.

Return type:

Dict[str, int]