wzkariampuzha
commited on
Commit
•
88e3e99
1
Parent(s):
11bfd3b
Update EpiClassify4GARD.py
Browse files- EpiClassify4GARD.py +2 -0
EpiClassify4GARD.py
CHANGED
@@ -28,6 +28,7 @@ INSERT DESCRIPTION
|
|
28 |
_CITATION = """\
|
29 |
John JN, Sid E, Zhu Q. Recurrent Neural Networks to Automatically Identify Rare Disease Epidemiologic Studies from PubMed. AMIA Jt Summits Transl Sci Proc. 2021 May 17;2021:325-334. PMID: 34457147; PMCID: PMC8378621.
|
30 |
"""
|
|
|
31 |
_TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/ncats/EpiClassify4GARD/raw/main/train.tsv"
|
32 |
_VAL_DOWNLOAD_URL = "https://huggingface.co/datasets/ncats/EpiClassify4GARD/raw/main/validation.tsv"
|
33 |
_TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/ncats/EpiClassify4GARD/raw/main/test.tsv"
|
@@ -68,6 +69,7 @@ class EpiClassify4GARD(datasets.GeneratorBasedBuilder):
|
|
68 |
)
|
69 |
next(csv_reader)
|
70 |
for id_, row in enumerate(csv_reader):
|
|
|
71 |
abstract = row[0]
|
72 |
label = row[1]
|
73 |
yield id_, {"abstract": abstract, "label": int(label)}
|
|
|
28 |
_CITATION = """\
|
29 |
John JN, Sid E, Zhu Q. Recurrent Neural Networks to Automatically Identify Rare Disease Epidemiologic Studies from PubMed. AMIA Jt Summits Transl Sci Proc. 2021 May 17;2021:325-334. PMID: 34457147; PMCID: PMC8378621.
|
30 |
"""
|
31 |
+
|
32 |
_TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/ncats/EpiClassify4GARD/raw/main/train.tsv"
|
33 |
_VAL_DOWNLOAD_URL = "https://huggingface.co/datasets/ncats/EpiClassify4GARD/raw/main/validation.tsv"
|
34 |
_TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/ncats/EpiClassify4GARD/raw/main/test.tsv"
|
|
|
69 |
)
|
70 |
next(csv_reader)
|
71 |
for id_, row in enumerate(csv_reader):
|
72 |
+
print(row)
|
73 |
abstract = row[0]
|
74 |
label = row[1]
|
75 |
yield id_, {"abstract": abstract, "label": int(label)}
|