Description
This pretrained pipeline is built on the top of ner_events_healthcare model.
Predicted Entities
OCCURRENCE, DATE,PROBLEM,DURATION,EVIDENTIAL,TREATMENT,TEST,CLINICAL_DEPT,FREQUENCY,TIME
How to use
from sparknlp.pretrained import PretrainedPipeline
pipeline = PretrainedPipeline("ner_events_healthcare_pipeline", "en", "clinical/models")
text = '''The patient presented to the emergency room last evening.'''
result = pipeline.fullAnnotate(text)
import com.johnsnowlabs.nlp.pretrained.PretrainedPipeline
val pipeline = new PretrainedPipeline("ner_events_healthcare_pipeline", "en", "clinical/models")
val text = "The patient presented to the emergency room last evening."
val result = pipeline.fullAnnotate(text)
import nlu
nlu.load("en.med_ner.healthcare_events.pipeline").predict("""The patient presented to the emergency room last evening.""")
Results
| | ner_chunks | begin | end | ner_label | confidence |
|---:|:-------------------|--------:|------:|:--------------|-------------:|
| 0 | presented | 12 | 20 | EVIDENTIAL | 0.6769 |
| 1 | the emergency room | 25 | 42 | CLINICAL_DEPT | 0.835967 |
| 2 | last evening | 44 | 55 | DATE | 0.59135 |
Model Information
| Model Name: | ner_events_healthcare_pipeline |
| Type: | pipeline |
| Compatibility: | Healthcare NLP 4.4.4+ |
| License: | Licensed |
| Edition: | Official |
| Language: | en |
| Size: | 513.8 MB |
Included Models
- DocumentAssembler
- SentenceDetectorDLModel
- TokenizerModel
- WordEmbeddingsModel
- MedicalNerModel
- NerConverterInternalModel