How do I solve the "Java Package is not callable" error on Spark OCR? #341
-
I have a "JavaPackage is not callable" error at this step of the ocr-NER workshop notebook. I guess this is related to missing .jar files, am i getting it right? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Can you try to start with following script? from sparkocr import start |
Beta Was this translation helpful? Give feedback.
Can you try to start with following script?
from sparkocr import start
JSL_OCR_SECRET = ""
OCR_VERSION = ""
ocr_jar_path = f"https://pypi.johnsnowlabs.com/{JSL_OCR_SECRET}/jars/spark-ocr-assembly-{OCR_VERSION}.jar"
spark = start(secret=JSL_OCR_SECRET, jar_path=ocr_jar_path)
spark