I've a "ner_clinical_large" model error on Spark NLP for Healthcare. #307
-
I tried to use "ner_clinical_large" model. But I encountered a problem, the error message is as follows. Py4JJavaError Traceback (most recent call last) ~\Miniconda3\envs\SparkNLP\lib\site-packages\sparknlp_jsl\annotator.py in pretrained(name, lang, remote_loc) ~\Miniconda3\envs\SparkNLP\lib\site-packages\sparknlp\pretrained.py in downloadModel(reader, name, language, remote_loc, j_dwn) ~\Miniconda3\envs\SparkNLP\lib\site-packages\sparknlp\internal.py in init(self, reader, name, language, remote_loc, validator) ~\Miniconda3\envs\SparkNLP\lib\site-packages\sparknlp\internal.py in init(self, java_obj, *args) ~\Miniconda3\envs\SparkNLP\lib\site-packages\sparknlp\internal.py in new_java_obj(self, java_class, *args) ~\Miniconda3\envs\SparkNLP\lib\site-packages\pyspark\ml\wrapper.py in _new_java_obj(java_class, *args) ~\Miniconda3\envs\SparkNLP\lib\site-packages\py4j\java_gateway.py in call(self, *args) ~\Miniconda3\envs\SparkNLP\lib\site-packages\pyspark\sql\utils.py in deco(*a, **kw) ~\Miniconda3\envs\SparkNLP\lib\site-packages\py4j\protocol.py in get_return_value(answer, gateway_client, target_id, name) Py4JJavaError: An error occurred while calling z:com.johnsnowlabs.nlp.pretrained.InternalsPythonResourceDownloader.downloadModel. I use the following code to load ---> Spark = SparkSession.builder |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please check the version of spark/pyspark. Such an error can occur if you are using spark 2.x with a spark-nlp-jsl jar compiled for spark 3.x |
Beta Was this translation helpful? Give feedback.
Please check the version of spark/pyspark. Such an error can occur if you are using spark 2.x with a spark-nlp-jsl jar compiled for spark 3.x