Main Content
readWordEmbedding
Read word embedding from file
Description
reads the pretrained word embedding stored in text file or zip file
emb
= readWordEmbedding(filename
)filename
. The input file must be a text file with UTF-8
encoding in either the word2vec or GloVe text embedding format, or a zip file
containing a text file of this format.
If the word embedding file contains duplicate words, then the software uses the word vector corresponding to the last duplicate entry.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017b