Created
July 31, 2021 12:07
-
-
Save Nithilaa/d07e643dd2e35a750faa665d9e36cb52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aug = nac.RandomCharAug(action='substitute', name='RandomChar_Aug', aug_char_min=1, aug_char_max=10, aug_char_p=0.3, | |
aug_word_p=0.3, aug_word_min=1, aug_word_max=10, include_upper_case=True, include_lower_case=True, | |
include_numeric=True, min_char=4, swap_mode='adjacent', spec_char='!@#$%^&*()_+', stopwords=None, | |
tokenizer=None, reverse_tokenizer=None, verbose=0, stopwords_regex=None, candidiates=None) | |
test_sentence_aug = aug.augment(test_sentence) | |
print(test_sentence) | |
print(test_sentence_aug) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment