0

One exception occurred when I load a spark nlp pretrainedPipeline as following:

Exception in thread "main" java.lang.IllegalArgumentException: Unsupported class file major version 59

I am new to Scala, can anyone recognize the reason? Thank you in advance.

My code:

enter image description here

My dependencies:

[enter image description here]2]

Exception details:

enter image description here

Barbora
  • 921
  • 1
  • 6
  • 11
Jerry Sun
  • 1
  • 1

1 Answers1

0

The code and build.sbt look well. Keep in mind that you need to use Java 1.8.x in order for Spark-NLP to work. Please check requirements here,

https://github.com/JohnSnowLabs/spark-nlp#requirements

And Scala steps here,

https://github.com/JohnSnowLabs/spark-nlp#scala

Alberto.

AlbertoAndreotti
  • 478
  • 4
  • 13