Skip to content

Instantly share code, notes, and snippets.

@Nithilaa
Created July 31, 2021 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nithilaa/e32469c1b910936782005b37fecd6a91 to your computer and use it in GitHub Desktop.
Save Nithilaa/e32469c1b910936782005b37fecd6a91 to your computer and use it in GitHub Desktop.
aug = nac.KeyboardAug(name='Keyboard_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, stopwords=None, tokenizer=None, reverse_tokenizer=None,
include_special_char=True, include_numeric=True, include_upper_case=True, lang='en', verbose=0,
stopwords_regex=None, model_path=None, min_char=4)
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