Vector_Puller: Function for extacting word vectors from embeddings.
Description
Function for extacting word vectors from embeddings. This function is an internal function for 'Sentence_Puller'. It averages the word vectors and returns the average of these vectors.
Usage
Vector_Puller(words, emb_matrix, dimension)
Arguments
words
The word to be extracted.
emb_matrix
The embeddings matrix. It must be a data frame.
dimension
The Dimension of the embeddings to extract. They do not have to match that of the matrix, but they cannot exceed its maximum column count.
Value
The vector that corresponds to the average of the word vectors.