Skip to content
Prev Previous commit
Next Next commit
Update recipes.py
  • Loading branch information
Hanyu-Liu-123 committed Dec 18, 2020
commit cb2237e9b09f468f9fe41f86b77ffd798f7fdab2
4 changes: 1 addition & 3 deletions textattack/augmentation/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ class EasyDataAugmenter(Augmenter):
"""

def __init__(self, pct_words_to_swap=0.1, transformations_per_example=4):
assert (
0.0 <= pct_words_to_swap <= 1.0
), "pct_words_to_swap must be in [0., 1.]"
assert 0.0 <= pct_words_to_swap <= 1.0, "pct_words_to_swap must be in [0., 1.]"
assert (
transformations_per_example > 0
), "transformations_per_example must be a positive integer"
Expand Down