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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group