I've an "Error with LightPipeline()" in Environment: Colab Spark 3.1.1 JSL 3.0.3. Spark NLP for Healthcare. #305
-
Error with LightPipeline() in Environment: Colab Spark 3.1.1 JSL 3.0.3. Appreciate any pointers to resolve this issue. Thank you! Py4JError: An error occurred while calling None.com.johnsnowlabs.nlp.LightPipeline. Trace: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
First of all, you cannot feed the pipeline to Light pipeline as it needs to be fitted at first to become pipelineModel. You need to fit and then use the fitted clf stage in another pipeline to create a prediction pipeline and model and then feed to lightpipe. check this out to learn more >> https://colab.research.google.com/github/JohnSnowLabs/spark-nlp-workshop/blob/master/tutorials/Certification_Trainings/Public/5.Text_Classification_with_ClassifierDL.ipynb |
Beta Was this translation helpful? Give feedback.
First of all, you cannot feed the pipeline to Light pipeline as it needs to be fitted at first to become pipelineModel. You need to fit and then use the fitted clf stage in another pipeline to create a prediction pipeline and model and then feed to lightpipe.
check this out to learn more >> https://colab.research.google.com/github/JohnSnowLabs/spark-nlp-workshop/blob/master/tutorials/Certification_Trainings/Public/5.Text_Classification_with_ClassifierDL.ipynb