Found that the dis.read() call that I removed was removing the first character of the word strings. My calls to method getWordVector from class Word2Vec were therefore not returning the correct vector.