You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Calling the augment function of a BackTranslationAugmenter produces a list with a length that appears to be non-deterministic, sometimes not matching the value of the transformations_per_example initialization parameter.
To Reproduce
Run the following code:
import textattack
augmenter = textattack.augmentation.recipes.BackTranslationAugmenter(transformations_per_example=5)
s = "You are in the kitchen."
ls = augmenter.augment(s)
print(len(ls))
Expected behavior
Expected output: 5
Actual output: 3
System Information (please complete the following information):
Describe the bug
Calling the
augment
function of aBackTranslationAugmenter
produces a list with a length that appears to be non-deterministic, sometimes not matching the value of thetransformations_per_example
initialization parameter.To Reproduce
Run the following code:
Expected behavior
Expected output: 5
Actual output: 3
System Information (please complete the following information):
pip freeze
output: https://pastebin.com/VPt7JdRYThe text was updated successfully, but these errors were encountered: