cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

TypeError: 'JavaPackage' object is not callable - DocumentAssembler() - Spark NLP

Ancil
Contributor II

Hi,

I am doing a grammar check using spark NLP using azure databricks. But am getting TypeError: 'JavaPackage' object is not callable - in DocumentAssembler() intialization line.

document_assembler = DocumentAssembler()\

 .setInputCol("text")\

 .setOutputCol("document")

Same code I tried with colab notebook its working fine.

Is anybody please help me on this?

sparknlp version : 4.2.3

pyspark version : 3.1.2

image.png

1 ACCEPTED SOLUTION

Accepted Solutions

Ancil
Contributor II

Hi

its working after adding below configs in cluster.

image 

Please check URL for more info :-

https://nlp.johnsnowlabs.com/docs/en/install#databricks-support

View solution in original post

1 REPLY 1

Ancil
Contributor II

Hi

its working after adding below configs in cluster.

image 

Please check URL for more info :-

https://nlp.johnsnowlabs.com/docs/en/install#databricks-support

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!