Description
This pretrained pipeline is built on the top of ner_drugs_greedy model.
Predicted Entities
DRUG
How to use
from sparknlp.pretrained import PretrainedPipeline
pipeline = PretrainedPipeline("ner_drugs_greedy_pipeline", "en", "clinical/models")
text = '''DOSAGE AND ADMINISTRATION The initial dosage of hydrocortisone tablets may vary from 20 mg to 240 mg of hydrocortisone per day depending on the specific disease entity being treated.'''
result = pipeline.fullAnnotate(text)
import com.johnsnowlabs.nlp.pretrained.PretrainedPipeline
val pipeline = new PretrainedPipeline("ner_drugs_greedy_pipeline", "en", "clinical/models")
val text = "DOSAGE AND ADMINISTRATION The initial dosage of hydrocortisone tablets may vary from 20 mg to 240 mg of hydrocortisone per day depending on the specific disease entity being treated."
val result = pipeline.fullAnnotate(text)
import nlu
nlu.load("en.med_ner.drugs_greedy.pipeline").predict("""DOSAGE AND ADMINISTRATION The initial dosage of hydrocortisone tablets may vary from 20 mg to 240 mg of hydrocortisone per day depending on the specific disease entity being treated.""")
Results
| | ner_chunk | begin | end | ner_label | confidence |
|---:|:----------------------------------|--------:|------:|:------------|-------------:|
| 0 | hydrocortisone tablets | 48 | 69 | DRUG | 0.9923 |
| 1 | 20 mg to 240 mg of hydrocortisone | 85 | 117 | DRUG | 0.7361 |
Model Information
Model Name: | ner_drugs_greedy_pipeline |
Type: | pipeline |
Compatibility: | Healthcare NLP 4.3.0+ |
License: | Licensed |
Edition: | Official |
Language: | en |
Size: | 1.7 GB |
Included Models
- DocumentAssembler
- SentenceDetectorDLModel
- TokenizerModel
- WordEmbeddingsModel
- MedicalNerModel
- NerConverterInternalModel