Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 10:54 AM
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
Labels:
- Labels:
-
Javapackage
-
Nlp
-
Object
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2022 10:22 PM
Hi
its working after adding below configs in cluster.
Please check URL for more info :-
https://nlp.johnsnowlabs.com/docs/en/install#databricks-support