GitHub user benradford opened a pull request: https://github.com/apache/spark/pull/17234
[SPARK-19892][MLlib] Implement findAnalogies method for Word2VecModel ## What changes were proposed in this pull request? Added findAnalogies method to Word2VecModel for performing vector-algebra-based queries (e.g. King + Woman - Man). ## How was this patch tested? Followed the contributor's guide for Spark and ran the run-tests. Compiled and tested functionality in spark-shell. This is an original work that I license to the project under the project's open source license. You can merge this pull request into a Git repository by running: $ git pull https://github.com/benradford/spark feature/findAnalogies Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/17234.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #17234 ---- commit 2e7f1a3bd519d79ce9b08d388247e9a1d7f67635 Author: Benjamin Radford <benjamin.radf...@gmail.com> Date: 2017-03-10T04:42:33Z Added findAnalogies method to Word2VecModel commit 9aefebfcd2e6eaad117727901ad70d0d26b03a1a Author: Benjamin Radford <benjamin.radf...@gmail.com> Date: 2017-03-10T05:16:46Z Fixed comment indentation to conform to style guide. ---- --- 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