Skip to content

Commit

Permalink
Updated md card and annotators (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
akrztrk authored Jan 3, 2024
1 parent 57f6e9a commit 5a0b312
Show file tree
Hide file tree
Showing 47 changed files with 30 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps drugs with their corresponding `action` and `treatment`. `action` refers to the function of the drug in various body systems, `treatment` refers to which disease the drug is used to treat

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.

## Predicted Entities

`action`, `treatment`
Expand All @@ -39,6 +37,7 @@ This pretrained model maps drugs with their corresponding `action` and `treatmen

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps drugs with their corresponding `action` and `treatment`. `action` refers to the function of the drug in various body systems, `treatment` refers to which disease the drug is used to treat.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.

## Predicted Entities

`action`, `treatment`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,39 +46,32 @@ document_assembler = DocumentAssembler()\
.setInputCol('text')\
.setOutputCol('document')


sentence_detector = SentenceDetector()\
.setInputCols(["document"])\
.setOutputCol("sentence")


tokenizer = Tokenizer()\
.setInputCols("sentence")\
.setOutputCol("token")


embeddings = WordEmbeddingsModel.pretrained("embeddings_clinical", "en","clinical/models")\
.setInputCols(["sentence", "token"])\
.setOutputCol("word_embeddings")


clinical_ner = MedicalNerModel.pretrained("ner_jsl_slim", "en", "clinical/models")\
.setInputCols(["sentence","token", "word_embeddings"])\
.setOutputCol("ner")


ner_converter = NerConverter()\
.setInputCols(["sentence", "token", "ner"])\
.setOutputCol("ner_chunk")\
.setWhiteList(["Header"])


chunkerMapper = ChunkMapperModel.pretrained("normalized_section_header_mapper", "en", "clinical/models") \
.setInputCols("ner_chunk")\
.setOutputCol("mappings")\
.setRel("level_1") #or level_2


pipeline = Pipeline().setStages([document_assembler,
sentence_detector,
tokenizer,
Expand Down
3 changes: 1 addition & 2 deletions docs/_posts/Ahmetemintek/2022-06-07-rxnorm_mapper_en_3_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps entities with their corresponding RxNorm codes.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.

## Predicted Entities

`rxnorm_code`
Expand All @@ -39,6 +37,7 @@ This pretrained model maps entities with their corresponding RxNorm codes.

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This pretrained model maps RxNorm codes with corresponding UMLS Codes.

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
documentAssembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps entities (Clinical Drugs) with their corresponding UMLS CUI codes.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.

## Predicted Entities

`umls_code`
Expand All @@ -39,6 +37,7 @@ This pretrained model maps entities (Clinical Drugs) with their corresponding UM

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This pretrained model maps clinical entities and concepts to 4 major categories

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This pretrained model maps entities (Disease or Syndrome) with corresponding UML

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps entities (Drug Substances) with their corresponding UMLS CUI codes.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.

## Predicted Entities

`umls_code`
Expand All @@ -39,6 +37,7 @@ This pretrained model maps entities (Drug Substances) with their corresponding U

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This pretrained model maps entities (Major Clinical Concepts) with corresponding

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
4 changes: 1 addition & 3 deletions docs/_posts/Ahmetemintek/2022-08-23-drug_ade_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps drugs with their corresponding Adverse Drug Events.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

`ADE`
Expand All @@ -41,6 +38,7 @@ This pretrained model maps drugs with their corresponding Adverse Drug Events.

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained pipeline maps entities with their corresponding RxNorm codes and normalized RxNorm resolutions.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

`rxnorm_code`, `normalized_name`
Expand All @@ -40,6 +37,7 @@ This pretrained pipeline maps entities with their corresponding RxNorm codes and

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
6 changes: 1 addition & 5 deletions docs/_posts/Ahmetemintek/2022-09-30-icd10_icd9_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps ICD-10-CM codes to corresponding ICD-9-CM codes.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

`icd9_code`
Expand All @@ -36,10 +33,9 @@ This pretrained model maps ICD-10-CM codes to corresponding ICD-9-CM codes.

## How to use



<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
documentAssembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This pretrained model maps ICD-9-CM codes to corresponding ICD-10-CM codes.

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
1 change: 1 addition & 0 deletions docs/_posts/Ahmetemintek/2022-09-30-icd9_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This pretrained model maps entities with their corresponding ICD-9-CM codes.

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
1 change: 1 addition & 0 deletions docs/_posts/Ahmetemintek/2022-10-12-cvx_code_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This pretrained model maps CVX codes with their corresponding vaccine names and

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
1 change: 1 addition & 0 deletions docs/_posts/Ahmetemintek/2022-10-12-cvx_name_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This pretrained model maps vaccine products with their corresponding CVX codes,

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
1 change: 1 addition & 0 deletions docs/_posts/Ahmetemintek/2022-10-29-icd10cm_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This pretrained model maps entities with their corresponding ICD-10-CM codes.

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This pretrained model maps abbreviations and acronyms of medical regulatory acti

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This pretrained model maps abbreviations and acronyms of medical regulatory acti

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This pretrained model maps diseases with their corresponding `category`, `descri

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
3 changes: 1 addition & 2 deletions docs/_posts/Ahmetemintek/2022-11-21-kegg_drug_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps drugs with their corresponding `efficacy`, `molecular_weight` as well as `CAS`, `PubChem`, `ChEBI`, `LigandBox`, `NIKKAJI`, `PDB-CCD` codes. This model was trained with the data from the KEGG database.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

Expand All @@ -40,6 +38,7 @@ This pretrained model maps drugs with their corresponding `efficacy`, `molecular

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps RxNorm and RxNorm Extension codes with their corresponding drug brand names. It returns 2 types of brand names for the corresponding RxNorm or RxNorm Extension code.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities
Expand Down
3 changes: 1 addition & 2 deletions docs/_posts/Ahmetemintek/2023-02-23-rxnorm_nih_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps entities with their corresponding RxNorm codes according to the National Institute of Health (NIH) database. It returns Rxnorm codes with their NIH Rxnorm Term Types within a parenthesis.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

Expand All @@ -40,6 +38,7 @@ This pretrained model maps entities with their corresponding RxNorm codes accord

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol('text')\
Expand Down
1 change: 1 addition & 0 deletions docs/_posts/Ahmetemintek/2023-04-13-hcpcs_ndc_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This pretrained model maps HCPCS codes with their corresponding National Drug Co

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
1 change: 1 addition & 0 deletions docs/_posts/Ahmetemintek/2023-04-13-ndc_hcpcs_mapper_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This pretrained model maps National Drug Codes (NDC) with their corresponding HC

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This pretrained model maps ICD-10-CM codes with their corresponding Medicare Sev

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps drug brand names to corresponding National Drug Codes (NDC). Product NDCs for each strength are returned in result and metadata.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

`Strength_NDC`
Expand All @@ -36,8 +33,6 @@ This pretrained model maps drug brand names to corresponding National Drug Codes

## How to use



<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps ICD10-CM codes to corresponding SNOMED codes under the Unified Medical Language System (UMLS).

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

`snomed_code`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps ICD10CM codes to corresponding UMLS codes under the Unified Medical Language System (UMLS).

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

`umls_code`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps ICDO codes to corresponding SNOMED codes.

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.


## Predicted Entities

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use_language_switcher: "Python-Scala-Java"

This pretrained model maps MESH codes to corresponding UMLS codes under the Unified Medical Language System (UMLS).

`Important Note`: Mappers extract additional information such as extended descriptions and categories related to Concept codes (such as RxNorm, ICD10, CPT, MESH, NDC, UMLS, etc.). They generally take Concept Codes, which are the outputs of EntityResolvers, as input. When creating a pipeline that contains 'Mapper', it is necessary to use the ChunkMapperModel after an EntityResolverModel.

## Predicted Entities

`umls_code`
Expand Down
Loading

0 comments on commit 5a0b312

Please sign in to comment.