Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -8
Mimic4Dataset.py
CHANGED
@@ -517,16 +517,9 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
517 |
features = datasets.Features(
|
518 |
{
|
519 |
"label": datasets.ClassLabel(num_classes=2,names=["0", "1"]),
|
520 |
-
"
|
521 |
-
"CHART/LAB" : datasets.Value(dtype='string', id=None),
|
522 |
}
|
523 |
)
|
524 |
-
return datasets.DatasetInfo(
|
525 |
-
description=_DESCRIPTION,
|
526 |
-
features=features,
|
527 |
-
homepage=_HOMEPAGE,
|
528 |
-
citation=_CITATION,
|
529 |
-
)
|
530 |
|
531 |
def _generate_examples_text(self, filepath):
|
532 |
icd = pd.read_csv('icd10.txt',names=['code','description'],sep='\t')
|
|
|
517 |
features = datasets.Features(
|
518 |
{
|
519 |
"label": datasets.ClassLabel(num_classes=2,names=["0", "1"]),
|
520 |
+
"text" : datasets.Value(dtype='string', id=None),
|
|
|
521 |
}
|
522 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
523 |
|
524 |
def _generate_examples_text(self, filepath):
|
525 |
icd = pd.read_csv('icd10.txt',names=['code','description'],sep='\t')
|