Skip to content
Snippets Groups Projects
Commit 9306b8c6 authored by Liquan Pei's avatar Liquan Pei Committed by Xiangrui Meng
Browse files

[MLlib] Remove transform(dataset: RDD[String]) from Word2Vec public API

mengxr
Remove  transform(dataset: RDD[String]) from public API.

Author: Liquan Pei <liquanpei@gmail.com>

Closes #2010 from Ishiihara/Word2Vec-api and squashes the following commits:

17b1031 [Liquan Pei] remove transform(dataset: RDD[String]) from public API
parent eef779b8
No related branches found
No related tags found
No related merge requests found
...@@ -434,15 +434,6 @@ class Word2VecModel private[mllib] ( ...@@ -434,15 +434,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 * Find synonyms of a word
* @param word a word * @param word a word
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment