Generate Embedding Matrix for given word index

generate_embedding_matrix(word_index, embedding_dim, max_words,
  glove_file_path)

Arguments

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.

Value

Embedding Matrix object