I was looking at the example of Spark site for Word2Vec:
val input = sc.textFile("text8").map(line => line.split(" ").toSeq)
val word2vec = new Word2Vec()
val model = word2vec.fit(input)
val synonyms = model.findSynonyms("country name here", 40)
How do I do the interesting vector such as king - man + woman = queen. I can use model.getVectors, but not sure how to proceed further.