Skip to content

de-identifier NER model in offline mode: Got Py4JJavaError: An error occurred while calling None.com.johnsnowlabs.nlp.annotators.ner.MedicalNerModel. Spark NLP for Healthcare #260

Discussion options

You must be logged in to vote

need to use the right embeddings as stated at that model link:

word_embeddings = WordEmbeddingsModel.pretrained("embeddings_clinical", "en", "clinical/models")\
   .setInputCols(["sentence", "token"])\
   .setOutputCol("embeddings")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maziyarpanahi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #252 on August 13, 2021 08:33.