Skip to content

Instantly share code, notes, and snippets.

@Nithilaa
Created July 31, 2021 12:13
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/d2927b29e64db57ce854ed62eceb55dc to your computer and use it in GitHub Desktop.
Save Nithilaa/d2927b29e64db57ce854ed62eceb55dc to your computer and use it in GitHub Desktop.
aug = naw.AntonymAug(name='Antonym_Aug', aug_min=1, aug_max=10, aug_p=0.3, lang='eng', stopwords=None, tokenizer=None,
reverse_tokenizer=None, stopwords_regex=None, verbose=0)
test_sentence_aug = aug.augment("very beautiful")
print("very beautiful")
print(test_sentence_aug)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment