Description
This pretrained pipeline is built on the top of ner_bacterial_species model.
How to use
from sparknlp.pretrained import PretrainedPipeline
pipeline = PretrainedPipeline("ner_bacterial_species_pipeline", "en", "clinical/models")
text = '''Based on these genetic and phenotypic properties, we propose that strain SMSP (T) represents a novel species of the genus Methanoregula, for which we propose the name Methanoregula formicica sp. nov., with the type strain SMSP (T) (= NBRC 105244 (T) = DSM 22288 (T)).'''
result = pipeline.fullAnnotate(text)
import com.johnsnowlabs.nlp.pretrained.PretrainedPipeline
val pipeline = new PretrainedPipeline("ner_bacterial_species_pipeline", "en", "clinical/models")
val text = "Based on these genetic and phenotypic properties, we propose that strain SMSP (T) represents a novel species of the genus Methanoregula, for which we propose the name Methanoregula formicica sp. nov., with the type strain SMSP (T) (= NBRC 105244 (T) = DSM 22288 (T))."
val result = pipeline.fullAnnotate(text)
import nlu
nlu.load("en.med_ner.bacterial_species.pipeline").predict("""Based on these genetic and phenotypic properties, we propose that strain SMSP (T) represents a novel species of the genus Methanoregula, for which we propose the name Methanoregula formicica sp. nov., with the type strain SMSP (T) (= NBRC 105244 (T) = DSM 22288 (T)).""")
Results
| | ner_chunks | begin | end | ner_label | confidence |
|---:|:------------------------|--------:|------:|:------------|-------------:|
| 0 | SMSP (T) | 73 | 80 | SPECIES | 0.9725 |
| 1 | Methanoregula formicica | 167 | 189 | SPECIES | 0.97935 |
| 2 | SMSP (T) | 222 | 229 | SPECIES | 0.991975 |
Model Information
Model Name: | ner_bacterial_species_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