Assignment 2: Learning World representations.

This commit is contained in:
2017-03-23 15:49:03 +00:00
parent 3c30ab9389
commit db7ac7690d
12 changed files with 100879 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
% 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