I've done the following:
import pyspark
from pyspark.sql import SparkSession
from pyspark import SparkContext, SparkConf, SQLContext
spark = SparkSession \
.builder \
.appName('Amazon ETL') \
.config('spark.jars.packages', 'com.johnsnowlabs.nlp:spark-nlp_2.11:2.4.5') \
.getOrCreate()
Plus...
import sparknlp
from sparknlp.annotator import *
and I get this error message: Error Message
Any help would be much appreciated!
Thanks, Kelvin
I solved the problem by preinstalling the JAVA dependencies by install the sparknlp
lib using maven.
In your Cluster-Libraries section, choose install new
, then choose maven
, and type in com.johnsnowlabs.nlp:spark-nlp_2.11:2.5.0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.