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

Description Usage Arguments Details Value Author(s) Examples

View source: R/Personal_Functions.R

Description

Loads in GloVes' pretrained 42 billion token embeddings, trained on the common crawl.

Usage

1
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

1
2
3
#This code only works if you have the 5g file found here: <https://nlp.stanford.edu/projects/glove/>

emb = Load_Glove_Embeddings()

LilRhino documentation built on Oct. 31, 2019, 4:59 p.m.