prepare_glove_embeddings: prepare_glove_embeddings

Description Usage Arguments Details Note

View source: R/word_embeddings.R

Description

This function prepares an embedding matrix containing the words in the training data set from pre-trained GloVe embeddings.

Usage

1
prepare_glove_embeddings(embedding_dim, tokenizer)

Arguments

embedding_dim

Dimensionality of word embeddings. Options are 25, 50, 100, 200.

tokenizer

Pre-fit keras text tokenizer.

Details

For more information on the GloVe embedding algorithm, visit https://nlp.stanford.edu/projects/glove/.

Note

The GloVe embeddings are 1.3G zipped and 3.8G unzipped.

Embeddings are saved as Rdata to a folder called embeddings with the file format "tweet_glove_{embedding_dim}.rda"


alex-gottlieb/deepIdeology documentation built on Nov. 1, 2019, 9:09 p.m.