powered by
Loads in GloVes' pretrained 42 billion token embeddings, trained on the common crawl.
Load_Glove_Embeddings(path = 'glove.42B.300d.txt', d = 300)
The path to the embeddings file.
The dimension of the embeddings file.
The embeddings matrix.
The embeddings file should be the word, followed by numeric values, ending with a carriage return.
# NOT RUN { #This code only works if you have the 5g file found here: <https://nlp.stanford.edu/projects/glove/> # } # NOT RUN { emb = Load_Glove_Embeddings() # }
Run the code above in your browser using DataLab