Read word embedding from file
emb = readWordEmbedding(filename)
Read the example word embedding. This model was derived by analyzing text from Wikipedia.
filename = "exampleWordEmbedding.vec"; emb = readWordEmbedding(filename)
emb = wordEmbedding with properties: Dimension: 50 Vocabulary: [1x9999 string]
Explore the word embedding using
king = word2vec(emb,"king"); man = word2vec(emb,"man"); woman = word2vec(emb,"woman"); word = vec2word(emb,king - man + woman)
word = "queen"
filename— Name of file
Name of the file, specified as a string scalar or character vector.