Re: how to save Word2VecModel

2015-03-04 Thread Xiangrui Meng
+user On Wed, Mar 4, 2015, 8:21 AM Xiangrui Meng wrote: > You can use the save/load implementation in naive Bayes as reference: > https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala > > Ping me on the JIRA page to get the ticket

Re: how to save Word2VecModel

2015-03-03 Thread Xiangrui Meng
There is a JIRA for this: https://issues.apache.org/jira/browse/SPARK-5692, a subtask of SPARK-4587. We implemented save/load for linear models, trees, and ALS in Spark 1.3, but we don't support Word2VecModel yet. As a hack, you can try Java serialization: sc.parallelize(Seq(model), 1).saveAsObjec