Changes to Tomas Mikolov's word2vec code. See https://code.google.com/p/word2vec/