langtest.transform.utils#

Functions

check_name(word, name_lists)

Checks if a word is in a list of list of strings

create_terminology(ner_data)

Iterate over the DataFrame to create terminology from the predictions.

get_country_economic_representation_dict(data)

param data:

The input data to be evaluated for representation test.

get_entity_representation_proportions(...)

param entity_representation:

a dictionary containing representation information.

get_ethnicity_representation_dict(data)

param data:

The input data to be evaluated for representation test.

get_label_representation_dict(data)

param data:

The input data to be evaluated for representation test.

get_religion_name_representation_dict(data)

param data:

The input data to be evaluated for representation test.

get_substitution_names(values_list)

Helper function to get list of substitution names