langtest.transform.utils.filter_unique_samples#

filter_unique_samples(task: str, transformed_samples: list, test_name: str)#

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

Parameters:
  • task (str) – The type of task.

  • transformed_samples (list) – List of transformed samples to be filtered.

  • test_name (str) – Name of the test.

Returns:

List of filtered samples with unique transformations. no_transformation_applied_tests (dict): A dictionary where keys are test names and

values are the number of samples removed from each test.

Return type:

new_transformed_samples (list)