View source: R/Personal_Functions.R
Load_Glove_Embeddings | R Documentation |
Loads in GloVes' pretrained 42 billion token embeddings, trained on the common crawl.
Load_Glove_Embeddings(path = 'glove.42B.300d.txt', d = 300)
path |
The path to the embeddings file. |
d |
The dimension of the embeddings file. |
The embeddings file should be the word, followed by numeric values, ending with a carriage return.
The embeddings matrix.
Travis Barton
#This code only works if you have the 5g file found here: <https://nlp.stanford.edu/projects/glove/> ## Not run: emb = Load_Glove_Embeddings()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.