Learn R Programming

LilRhino (version 1.2.2)

Load_Glove_Embeddings: 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.

Value

The embeddings matrix.

Details

The embeddings file should be the word, followed by numeric values, ending with a carriage return.

Examples

Run this code
# 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