R/keras_helpers.R
generate_embedding_matrix.Rd
Generate Embedding Matrix for given word index
generate_embedding_matrix(word_index, embedding_dim, max_words, glove_file_path)
word_index | word index as generated by the tokenizer. |
---|---|
embedding_dim | Output dimension of the embedding layer. |
max_words | Maximum number of words to consider using word frequency measure. |
glove_file_path | File path location for glove embeddings. |
Embedding Matrix object