Pipeline to Extract Cancer Therapies and Granular Posology Information (langtest)

Description

This pretrained pipeline is built on the top of ner_oncology_posology_langtest model.

Copy S3 URI

How to use


from sparknlp.pretrained import PretrainedPipeline

ner_pipeline = PretrainedPipeline("ner_oncology_posology_langtest_pipeline", "en", "clinical/models")

result = ner_pipeline.annotate("""The patient underwent a regimen consisting of adriamycin (60 mg/m2) and cyclophosphamide (600 mg/m2) over six courses. She is currently receiving his second cycle of chemotherapy and is in good overall condition.""")


import com.johnsnowlabs.nlp.pretrained.PretrainedPipeline

val ner_pipeline = PretrainedPipeline("ner_oncology_posology_langtest_pipeline", "en", "clinical/models")

val result = ner_pipeline.annotate("""The patient underwent a regimen consisting of adriamycin (60 mg/m2) and cyclophosphamide (600 mg/m2) over six courses. She is currently receiving his second cycle of chemotherapy and is in good overall condition.""")

Results

|    | chunks           |   begin |   end | entities       |
|---:|:-----------------|--------:|------:|:---------------|
|  0 | adriamycin       |      46 |    55 | Cancer_Therapy |
|  1 | 60 mg/m2         |      58 |    65 | Dosage         |
|  2 | cyclophosphamide |      72 |    87 | Cancer_Therapy |
|  3 | 600 mg/m2        |      90 |    98 | Dosage         |
|  4 | six courses      |     106 |   116 | Cycle_Count    |
|  5 | second cycle     |     150 |   161 | Cycle_Number   |
|  6 | chemotherapy     |     166 |   177 | Cancer_Therapy |

Model Information

Model Name: ner_oncology_posology_langtest_pipeline
Type: pipeline
Compatibility: Healthcare NLP 5.1.0+
License: Licensed
Edition: Official
Language: en
Size: 1.7 GB

Included Models

  • DocumentAssembler
  • SentenceDetectorDLModel
  • TokenizerModel
  • WordEmbeddingsModel
  • MedicalNerModel
  • NerConverter