jaclearn.embedding.word_embedding#
Functions
|
Loads pre-trained embeddings from the specified path. |
|
Loads only the word index from the embeddings file |
|
Get the word index for the given word. |
|
Get embedding indices for the given word sequence. |
Functions
- load(path, word_index_only=False, filter=None, format='glove')[source]#
Loads pre-trained embeddings from the specified path.
- load_word_index(path, filter=None, format='glove')[source]#
Loads only the word index from the embeddings file
@return word to index dictionary