()
| 126 | |
| 127 | |
| 128 | def test_back_translation(): |
| 129 | from textattack.augmentation import Augmenter |
| 130 | from textattack.transformations.sentence_transformations import BackTranslation |
| 131 | |
| 132 | augmenter = Augmenter(transformation=BackTranslation()) |
| 133 | s = "What on earth are you doing?" |
| 134 | augmented_text_list = augmenter.augment(s) |
| 135 | augmented_s = "What the hell are you doing?" |
| 136 | assert augmented_s in augmented_text_list |
| 137 | |
| 138 | |
| 139 | def test_back_transcription(): |
nothing calls this directly
no test coverage detected