-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2023-03-29-icd10cm_resolver_pipeline_en (#45)
* Add model 2023-03-29-icd10cm_resolver_pipeline_en * Add model 2023-03-29-umls_drug_resolver_pipeline_en --------- Co-authored-by: Ahmetemintek <ahmetemin.tek.66@gmail.com>
- Loading branch information
1 parent
9f49515
commit 47b53e5
Showing
2 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
docs/_posts/Ahmetemintek/2023-03-29-umls_drug_resolver_pipeline_en.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
layout: model | ||
title: Clinical Drugs to UMLS Code Mapping | ||
author: John Snow Labs | ||
name: umls_drug_resolver_pipeline | ||
date: 2023-03-29 | ||
tags: [en, licensed, umls, pipeline] | ||
task: Pipeline Healthcare | ||
language: en | ||
edition: Healthcare NLP 4.3.2 | ||
spark_version: 3.2 | ||
supported: true | ||
annotator: PipelineModel | ||
article_header: | ||
type: cover | ||
use_language_switcher: "Python-Scala-Java" | ||
--- | ||
|
||
## Description | ||
|
||
This pretrained pipeline maps entities (Clinical Drugs) with their corresponding UMLS CUI codes. You’ll just feed your text and it will return the corresponding UMLS codes. | ||
|
||
{:.btn-box} | ||
<button class="button button-orange" disabled>Live Demo</button> | ||
[Open in Colab](https://colab.research.google.com/github/JohnSnowLabs/spark-nlp-workshop/blob/master/tutorials/Certification_Trainings/Healthcare/3.Clinical_Entity_Resolvers.ipynb){:.button.button-orange.button-orange-trans.co.button-icon} | ||
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/clinical/models/umls_drug_resolver_pipeline_en_4.3.2_3.2_1680127003093.zip){:.button.button-orange} | ||
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/clinical/models/umls_drug_resolver_pipeline_en_4.3.2_3.2_1680127003093.zip){:.button.button-orange.button-orange-trans.button-icon.button-copy-s3} | ||
|
||
## How to use | ||
|
||
|
||
|
||
<div class="tabs-box" markdown="1"> | ||
{% include programmingLanguageSelectScalaPythonNLU.html %} | ||
```python | ||
from sparknlp.pretrained import PretrainedPipeline | ||
|
||
pipeline= PretrainedPipeline("umls_drug_resolver_pipeline", "en", "clinical/models") | ||
pipeline.annotate("The patient was given Adapin 10 MG, coumadn 5 mg") | ||
``` | ||
```scala | ||
import com.johnsnowlabs.nlp.pretrained.PretrainedPipeline | ||
|
||
val pipeline= PretrainedPipeline("umls_drug_resolver_pipeline", "en", "clinical/models") | ||
val pipeline.annotate("The patient was given Adapin 10 MG, coumadn 5 mg") | ||
``` | ||
</div> | ||
|
||
## Results | ||
|
||
```bash | ||
+------------+---------+---------+ | ||
|chunk |ner_label|umls_code| | ||
+------------+---------+---------+ | ||
|Adapin 10 MG|DRUG |C2930083 | | ||
|coumadn 5 mg|DRUG |C2723075 | | ||
+------------+---------+---------+ | ||
``` | ||
|
||
{:.model-param} | ||
## Model Information | ||
|
||
{:.table-model} | ||
|---|---| | ||
|Model Name:|umls_drug_resolver_pipeline| | ||
|Type:|pipeline| | ||
|Compatibility:|Healthcare NLP 4.3.2+| | ||
|License:|Licensed| | ||
|Edition:|Official| | ||
|Language:|en| | ||
|Size:|4.6 GB| | ||
|
||
## Included Models | ||
|
||
- DocumentAssembler | ||
- SentenceDetector | ||
- TokenizerModel | ||
- WordEmbeddingsModel | ||
- MedicalNerModel | ||
- NerConverterInternalModel | ||
- ChunkMapperModel | ||
- ChunkMapperModel | ||
- ChunkMapperFilterer | ||
- Chunk2Doc | ||
- BertSentenceEmbeddings | ||
- SentenceEntityResolverModel | ||
- ResolverMerger |