Skip to content

Commit 83f9553

Browse files
authored
updated md cards (#1117)
1 parent b2ce948 commit 83f9553

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

docs/_posts/HashamUlHaq/2021-04-01-ner_ade_clinical_en.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,19 @@ val result = model.transform(Seq("Hypersensitivity to aspirin can be manifested
116116
import nlu
117117
nlu.load("en.med_ner.ade.clinical").predict("""Hypersensitivity to aspirin can be manifested as acute asthma, urticaria and/or angioedema, or a systemic anaphylactoid reaction.""")
118118
```
119+
</div>
119120

120-
## Results
121+
## Result
121122

122123
```bash
123124
+-------------------------------+-----+---+---------+
124-
| chunk|begin|end|ner_label|
125+
|chunk |begin|end|ner_label|
125126
+-------------------------------+-----+---+---------+
126-
| aspirin| 20| 26| DRUG|
127-
| acute asthma| 49| 60| ADE|
128-
| urticaria| 63| 71| ADE|
129-
| angioedema| 80| 89| ADE|
130-
|systemic anaphylactoid reaction| 97|127| ADE|
127+
|aspirin |20 |26 |DRUG |
128+
|acute asthma |49 |60 |ADE |
129+
|urticaria |63 |71 |ADE |
130+
|angioedema |80 |89 |ADE |
131+
|systemic anaphylactoid reaction|97 |127|ADE |
131132
+-------------------------------+-----+---+---------+
132133
```
133134

docs/_posts/akrztrk/2024-03-14-meddra_llt_icd10_mapper_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ mapper_pipeline = Pipeline(stages=[
5555
mapperModel
5656
])
5757

58-
data = spark.createDataFrame([["10045275.0"], ["10067585.0"], ["10026182.0"]]).toDF("text")
58+
data = spark.createDataFrame([["10045275"], ["10067585"], ["10026182"]]).toDF("text")
5959

6060
mapper_model = mapper_pipeline.fit(data)
6161
result = mapper_model.transform(data)
@@ -81,7 +81,7 @@ val mapper_pipeline = new Pipeline().setStages(Array(
8181
mapperModel
8282
)
8383

84-
val data = Seq("10045275.0", "10067585.0", "10026182.0").toDF("text")
84+
val data = Seq("10045275", "10067585", "10026182").toDF("text")
8585

8686
val mapper_model = mapper_pipeline.fit(data)
8787
val result = mapper_model.transform(data)

docs/_posts/akrztrk/2024-03-15-meddra_pt_icd10_mapper_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ mapper_pipeline = Pipeline(stages=[
5555
mapperModel
5656
])
5757

58-
data = spark.createDataFrame([["10000153.0"], ["10000081.0"], ["10039085.0"]]).toDF("text")
58+
data = spark.createDataFrame([["10000153"], ["10000081"], ["10039085"]]).toDF("text")
5959

6060
mapper_model = mapper_pipeline.fit(data)
6161
result = mapper_model.transform(data)
@@ -81,7 +81,7 @@ val mapper_pipeline = new Pipeline().setStages(Array(
8181
mapperModel
8282
))
8383

84-
val data = Seq("10000153.0", "10000081.0", "10039085.0").toDF("text")
84+
val data = Seq("10000153", "10000081", "10039085").toDF("text")
8585

8686
val mapper_model = mapper_pipeline.fit(data)
8787
val result = mapper_model.transform(data)

0 commit comments

Comments
 (0)