if ~exist('preproc','var')
    tic
    emb = readWordEmbedding("/project/scv/examples/matlab/Tutorials/NLP/word2vec/wiki-news-300d-1M.vec.zip");
    toc
    tic
    A=word2vec(emb,emb.Vocabulary);
    toc
end
preproc=true;

%mysample = reshape(int32([0:4]' + linspace(1,size(A,1)-4,20)),[],1);
%emb.Vocabulary(inds(mysample))'

% italy = word2vec(emb,"Italy");
% rome = word2vec(emb,"Rome");
% paris = word2vec(emb,"Paris");

king = word2vec(emb2,"japan");
male = word2vec(emb2,"toyko");
female = word2vec(emb2,"book");

word = vec2word(emb2,king - male + female,10)

unique(1)


