Description Usage Arguments Details Note
View source: R/word_embeddings.R
This function prepares an embedding matrix containing the words in the training data set from pre-trained GloVe embeddings.
1 | prepare_glove_embeddings(embedding_dim, tokenizer)
|
embedding_dim |
Dimensionality of word embeddings. Options are 25, 50, 100, 200. |
tokenizer |
Pre-fit keras text tokenizer. |
For more information on the GloVe embedding algorithm, visit https://nlp.stanford.edu/projects/glove/.
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.