Cannot load PipelineModel trained on PySpark in Scala #14075
-
I trained and saved a PipelineModel on PySpark, the PipelineModel could be loaded in PySpark.
Version Info: |
Beta Was this translation helpful? Give feedback.
Answered by
maziyarpanahi
Feb 2, 2024
Replies: 2 comments 4 replies
-
Could you please share your whole code/pipeline, where are you saving and which environment are you trying to load it back? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@maziyarpanahi any hint or suggestion ? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @SidWeng
A few questions:
ICDOEntityResolver
? Just to pin point the issueI think you should import the Pipeline from actual
spark.ml
rather than our Pipeline, because they are different. All of our examples usefrom pyspark.ml import Pipeline
: https://github.com/search?q=repo%3AJohnSnowLabs%2Fspark-nlp+pipeline&type=codeIn fact all you need is:
I would start with this last point first and try to use these 3 imports. If it …