botiverse.preprocessors.GloVe package#
Submodules#
botiverse.preprocessors.GloVe.GloVe module#
- class botiverse.preprocessors.GloVe.GloVe.GloVe(force_download=False)[source]#
Bases:
objectAn interface for transforming words into GloVe vectors.
Initialize the GloVe transformer and download the embeddings if needed.
- Parameters:
force_download (bool) – If True, download the embeddings even if they already exist.
- load_glove_vectors(force_download)[source]#
Load GloVe vectors from gensim into the class. By default uses 50D vectors.
- Parameters:
force_download (bool) – If True, download the embeddings even if they already exist.