Scala port of the word2vec tool.