Created
July 31, 2021 12:19
-
-
Save Nithilaa/4ab55c279b00b1c4dd1a296201118080 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
# 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