langtest.transform.utils#
Functions
|
Checks if a word is in a list of list of strings |
|
Compare a given phrase against a list of offensive words and count the number of offensive words present in the phrase. |
|
Iterate over the DataFrame to create terminology from the predictions. |
|
Filter and remove samples with no applied transformations from the list of transformed_samples. |
|
Returns a common font path available on all major operating systems. |
|
Helper function to get list of substitution names |
Classes
|
AttackerLLM class to generate attack plans and modified questions for adversarial learning. |
DataRetriever class to load and filter data from csv files |
|
This class provides operations for analyzing and evaluating different representations in data. |
|
|
|
|
|
|