JohnSnowLabs/spark-nlp-workshop

Error: java.io.FileNotFoundException: file or folder: file:/tmp/spark-d9d18bc0-4d60-49df-9aff-66604edf9cbd/spark-nlp-jsl-3.0.0.jar!/medical-ner-dl not found

egenc opened this issue · 1 comments

egenc commented

I'm working on getting the MedicalNer annotator fully implemented in the R sparknlp package. I'm using the same code to set it up and test it that I use for the NerDL annotator, but I'm getting the following error when training a model:
Error: java.io.FileNotFoundException: file or folder: file:/tmp/spark-d9d18bc0-4d60-49df-9aff-66604edf9cbd/spark-nlp-jsl-3.0.0.jar!/medical-ner-dl not found at com.johnsnowlabs.nlp.util.io.ResourceHelper$SourceStream.<init>(ResourceHelper.scala:44) at com.johnsnowlabs.nlp.util.io.ResourceHelper$.copyToLocal(ResourceHelper.scala:91) at com.johnsnowlabs.nlp.annotators.ner.dl.WithGraphResolver.$anonfun$searchForSuitableGraph$1(NerDLApproach.scala:433) at scala.Option.map(Option.scala:230) at com.johnsnowlabs.nlp.annotators.ner.dl.WithGraphResolver.searchForSuitableGraph(NerDLApproach.scala:433) at com.johnsnowlabs.nlp.annotators.ner.dl.WithGraphResolver.searchForSuitableGraph$(NerDLApproach.scala:432) at com.johnsnowlabs.nlp.annotators.ner.dl.NerDLApproach$.searchForSuitableGraph(NerDLApproach.scala:495) at com.johnsnowlabs.nlp.annotators.ner.MedicalNerApproach.train(MedicalNerApproach.scala:329) at com.johnsnowlabs.nlp.annotators.ner.MedicalNerApproach.train(MedicalNerApproach.scala:24)

egenc commented

Creating a graph in tf should be like this: tf_graph.print_model_params("ner_dl") . More info can be found in this link: https://github.com/JohnSnowLabs/spark-nlp-workshop/blob/master/tutorials/Certification_Trainings/Healthcare/17.Graph_builder_for_DL_models.ipynb