-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json4 parse error on ResourceMetadata while running few models in spark-nlp #14327
Comments
Please provide your full code preferably in Colab so we can reproduce it. |
Hi Maziyar, this is a minimal script to recreate what we're doing. The error happens when sparknlp tries to download a model. This same flow worked correctly for us under Spark 3.0, but somehow it is failing under the Spark 3.3 environment
|
@maziyarpanahi As per the code snippet above, we are not doing anything particularly complex, just generating some embeddings. We get the same error with other pretrained models as well. The code worked under Spark 3.0, but now we are getting this JSON4s parsing error under Spark 3.3. Is sparknlp 5.3.3 tested under pyspark 3.3.2, jvm/jre 11, scala 212 and python 3.9 ? What's the closest configuration that you've tested successfully on your side. |
This exception typically occurs when the JSON data being parsed does not match the expected format defined by the ResourceMetadata class constructor. This could be due to missing or extra fields, incorrect data types, or changes in the JSON structure.
Hope this helps, |
I am not sure what causes this, but please test the latest https://colab.research.google.com/drive/1qgD75n8KcSf5ehkZ7obpDTOls_17fiKJ?usp=sharing |
Is there an existing issue for this?
Who can help?
No response
What are you working on?
Trying out an example similar to https://sparknlp.org/api/com/johnsnowlabs/nlp/embeddings/BertSentenceEmbedding
Current Behavior
We are getting json4s exception while spark-nlp is trying to get resource metadata
Exception stacktrace
Expected Behavior
Model run successfully
Steps To Reproduce
Run https://sparknlp.org/api/com/johnsnowlabs/nlp/embeddings/BertSentenceEmbeddings example
Spark NLP version and Apache Spark
spark-nlp version - 5.3.3
Spark version - 3.3.2
Python version - 3.9
Scala version - 212
Type of Spark Application
Python Application
Java Version
jdk-11
Java Home Directory
No response
Setup and installation
No response
Operating System and Version
No response
Link to your project (if available)
No response
Additional Information
Other packages installed via pip
The text was updated successfully, but these errors were encountered: