Load_Glove_Embeddings {LilRhino} | R Documentation |
Function for loading in pre-trained or personal word embedding softwares.
Description
Loads in GloVes' pretrained 42 billion token embeddings, trained on the common crawl.
Usage
Load_Glove_Embeddings(path = 'glove.42B.300d.txt', d = 300)
Arguments
path |
The path to the embeddings file. |
d |
The dimension of the embeddings file. |
Details
The embeddings file should be the word, followed by numeric values, ending with a carriage return.
Value
The embeddings matrix.
Author(s)
Travis Barton
Examples
#This code only works if you have the 5g file found here: <https://nlp.stanford.edu/projects/glove/>
## Not run: emb = Load_Glove_Embeddings()
[Package LilRhino version 1.2.2 Index]