Description of changes:
This PR implements Transforms for each of the three semantic perturbation utility classes found here in the current code. The logic for the perturb methods is basically directly copy pasted from our existing code, with some really minor changes for greater code readability. The various test cases included in the unit tests are also directly copied from the existing unit tests for semantic_perturbation_utils.py.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Description of changes: This PR implements
Transform
s for each of the three semantic perturbation utility classes found here in the current code. The logic for theperturb
methods is basically directly copy pasted from our existing code, with some really minor changes for greater code readability. The various test cases included in the unit tests are also directly copied from the existing unit tests forsemantic_perturbation_utils.py
.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.