Skip to content

Instantly share code, notes, and snippets.

@Nithilaa
Created July 31, 2021 12:19
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/4ab55c279b00b1c4dd1a296201118080 to your computer and use it in GitHub Desktop.
Save Nithilaa/4ab55c279b00b1c4dd1a296201118080 to your computer and use it in GitHub Desktop.
# model_type: word2vec, glove or fasttext
aug_w2v = naw.WordEmbsAug(
model_type='glove', model_path='/content/glove.6B.300d.txt',
action="substitute")
print("Original:")
print(test_sentence)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment