File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
mllib/src/main/scala/org/apache/spark/mllib Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -298,12 +298,12 @@ class PythonMLLibAPI extends Serializable {
298298 * @return A handle to java Word2VecModelWrapper instance at python side
299299 */
300300 def trainWord2Vec (
301- dataJRDD : JavaRDD [java.util.ArrayList [String ]],
302- vectorSize : Int ,
303- learningRate : Double ,
304- numPartitions : Int ,
305- numIterations : Int ,
306- seed : Long ): Word2VecModelWrapper = {
301+ dataJRDD : JavaRDD [java.util.ArrayList [String ]],
302+ vectorSize : Int ,
303+ learningRate : Double ,
304+ numPartitions : Int ,
305+ numIterations : Int ,
306+ seed : Long ): Word2VecModelWrapper = {
307307 val data = dataJRDD.rdd.cache()
308308 val word2vec = new Word2Vec ()
309309 .setVectorSize(vectorSize)
Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ class Word2VecModel private[mllib] (
437437 * Find synonyms of a word
438438 * @param word a word
439439 * @param num number of synonyms to find
440- * @return array of (word, similarity )
440+ * @return array of (word, cosineSimilarity )
441441 */
442442 def findSynonyms (word : String , num : Int ): Array [(String , Double )] = {
443443 val vector = transform(word)
You can’t perform that action at this time.
0 commit comments