Github user keypointt commented on a diff in the pull request: https://github.com/apache/spark/pull/17451#discussion_r125158303 --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/Word2Vec.scala --- @@ -274,6 +274,29 @@ class Word2VecModel private[ml] ( wordVectors.findSynonyms(word, num) } + /** --- End diff -- actually I tried call the `findSynonymsArray` from python, but for `findSynonymsArray()` I got below in python, which has no data, ``` >>> model.findSynonymsArray("a", 2) [{u'__class__': u'scala.Tuple2'}, {u'__class__': u'scala.Tuple2'}] ``` which I posted a bit long ago https://github.com/apache/spark/pull/17451#issuecomment-290951029 that's why I switched to create a new method in scala
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org