Skip to content

Commit

Permalink
get raw vectors for further processing
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaessmann committed Nov 17, 2014
1 parent f1e7d1c commit 3782fa9
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -461,4 +461,13 @@ class Word2VecModel private[mllib] (
.tail
.toArray
}
}

/**
* Returns the strings with it´s raw vectors for further processing
* (e.g. clustering)
* @return map of string to vector
*/
def getVectors(): Map[String, Array[Float]] = {
model
}
}

0 comments on commit 3782fa9

Please sign in to comment.