Files

7 lines
199 B
Matlab

% This function trains a neural network language model.
function [words] = lookup( word, model )
idx = strcmp( model.vocab, word );
embd = model.word_embedding_weights' * idx'
words = embd
end