Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Dec 2, 2015

JIRA: https://issues.apache.org/jira/browse/SPARK-12016

We should not directly use Word2VecModel in pyspark. We need to wrap it in a Word2VecModelWrapper when loading it in pyspark.

@SparkQA
Copy link

SparkQA commented Dec 2, 2015

Test build #47056 has finished for PR 10100 at commit 3ba2a10.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 2, 2015

Test build #47061 has finished for PR 10100 at commit 6ac03ac.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@holdenk
Copy link
Contributor

holdenk commented Dec 3, 2015

This is only a suggestion, but looking at the other Java loadable models which are also wrapped in python it seems the standard approach is to instead add a load[X] method to the PythonMLLibAPI instead of doing the wrapper in Python. Might be worth doing that way just for consistencies sake - what are your thoughts?

@viirya
Copy link
Member Author

viirya commented Dec 3, 2015

It makes sense. Thanks. I will update this later.

@SparkQA
Copy link

SparkQA commented Dec 3, 2015

Test build #47122 has finished for PR 10100 at commit 56c250e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@viirya
Copy link
Member Author

viirya commented Dec 5, 2015

ping @davies @mengxr

@viirya
Copy link
Member Author

viirya commented Dec 13, 2015

ping @davies Can you take a look of this? It should be straightforward one.

@davies
Copy link
Contributor

davies commented Dec 14, 2015

LGTM, merging this into master, thanks!

@asfgit asfgit closed this in b51a4cd Dec 14, 2015
asfgit pushed a commit that referenced this pull request Jan 7, 2016
… pyspark

JIRA: https://issues.apache.org/jira/browse/SPARK-12016

We should not directly use Word2VecModel in pyspark. We need to wrap it in a Word2VecModelWrapper when loading it in pyspark.

Author: Liang-Chi Hsieh <[email protected]>

Closes #10100 from viirya/fix-load-py-wordvecmodel.

(cherry picked from commit b51a4cd)
Signed-off-by: Joseph K. Bradley <[email protected]>
asfgit pushed a commit that referenced this pull request Jan 7, 2016
… pyspark

JIRA: https://issues.apache.org/jira/browse/SPARK-12016

We should not directly use Word2VecModel in pyspark. We need to wrap it in a Word2VecModelWrapper when loading it in pyspark.

Author: Liang-Chi Hsieh <[email protected]>

Closes #10100 from viirya/fix-load-py-wordvecmodel.

(cherry picked from commit b51a4cd)
Signed-off-by: Joseph K. Bradley <[email protected]>
@jkbradley
Copy link
Member

I just backported this to 1.6 and 1.5

@viirya viirya deleted the fix-load-py-wordvecmodel branch December 27, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants