Skip to content

Commit 17b1031

Browse files
committed
remove transform(dataset: RDD[String]) from public API
1 parent eef779b commit 17b1031

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -434,15 +434,6 @@ class Word2VecModel private[mllib] (
434434
}
435435
}
436436

437-
/**
438-
* Transforms an RDD to its vector representation
439-
* @param dataset a an RDD of words
440-
* @return RDD of vector representation
441-
*/
442-
def transform(dataset: RDD[String]): RDD[Vector] = {
443-
dataset.map(word => transform(word))
444-
}
445-
446437
/**
447438
* Find synonyms of a word
448439
* @param word a word

0 commit comments

Comments
 (0)