Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -0
Mimic4Dataset.py
CHANGED
@@ -530,6 +530,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
530 |
|
531 |
def _generate_examples_text(self, filepath):
|
532 |
icd = pd.read_csv('icd10.txt',names=['code','description'],sep='\t')
|
|
|
533 |
with open(filepath, 'rb') as fp:
|
534 |
dico = pickle.load(fp)
|
535 |
for key, data in dico.items():
|
|
|
530 |
|
531 |
def _generate_examples_text(self, filepath):
|
532 |
icd = pd.read_csv('icd10.txt',names=['code','description'],sep='\t')
|
533 |
+
items= pd.read_csv(self.mimic_path+'/icu/d_items.csv.gz',compression='gzip', header=0)
|
534 |
with open(filepath, 'rb') as fp:
|
535 |
dico = pickle.load(fp)
|
536 |
for key, data in dico.items():
|