nlpaug
nlpaug copied to clipboard
load_word2vec_format() got an unexpected keyword argument 'no_header'
Hi,
I'm trying to create a word augmenter using glove. This is my code:
import nlpaug.augmenter.word.word_embs as nawwe
aug = nawwe.WordEmbsAug(model_type='glove',model_path='/content/drive/MyDrive/data/Glove/glove.6B.300d.txt', action = 'insert')
(I'm reading the glove .txt file from my google drive).
But when I execute it, it gives this error:
load_word2vec_format() got an unexpected keyword argument 'no_header'
How should I fix that?
Thanks