我一直在尝试从这个存储库运行 John Snow Spark-NLP 示例:
https://github.com/JohnSnowLabs/spark-nlp/blob/master/example/src/TrainViveknSentiment.scala
在我的本地机器上。但是org.apache.spark.SparkException: Task not serializable
当它到达val sparkPipeline = pipeline.fit(training)
堆栈时它会抛出错误它还说Caused by: java.io.NotSerializableException: com.johnsnowlabs.nlp.annotators.param.AnnotatorParam$SerializableFormat$