Load_Glove_Embeddings: Function for loading in pre-trained or personal word...

View source: R/Personal_Functions.R

Load_Glove_EmbeddingsR 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()

LilRhino documentation built on April 28, 2022, 1:06 a.m.