I am trying to upload a pre-trained spanish language word vectors and then retrain it with custom sentences:
!pip install fasttext
import fasttext
import fasttext.util
#download pre-trained spanish language word vectors c
fasttext.util.download_model('es', if_exists='ignore') # Spanish
ft = fasttext.load_model('cc.es.300.bin')
but once I try to update the vocabulary it gives me this AttributeError:
ft.build_vocab(sentences, update=True)
AttributeError: '_FastText' object has no attribute 'build_vocab'
Any advices?