cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.