aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala9
1 files changed, 0 insertions, 9 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala b/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala
index d2ae62b482..1dcaa2cd2e 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala
@@ -435,15 +435,6 @@ class Word2VecModel private[mllib] (
}
/**
- * Transforms an RDD to its vector representation
- * @param dataset a an RDD of words
- * @return RDD of vector representation
- */
- def transform(dataset: RDD[String]): RDD[Vector] = {
- dataset.map(word => transform(word))
- }
-
- /**
* Find synonyms of a word
* @param word a word
* @param num number of synonyms to find