langtest.transform.utils#

Functions

check_name(word, name_lists)

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

compare_generations_overlap(phrase)

Compare a given phrase against a list of offensive words and count the number of offensive words present in the phrase.

create_terminology(ner_data)

Iterate over the DataFrame to create terminology from the predictions.

filter_unique_samples(task, ...)

Filter and remove samples with no applied transformations from the list of transformed_samples.

get_substitution_names(values_list)

Helper function to get list of substitution names

Classes

RepresentationOperation()

This class provides operations for analyzing and evaluating different representations in data.