Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -2
Mimic4Dataset.py
CHANGED
@@ -258,12 +258,12 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
258 |
if chart:
|
259 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/chartVocab", 'rb') as fp:
|
260 |
chartDict = pickle.load(fp)
|
261 |
-
|
262 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/labsVocab", 'rb') as fp:
|
263 |
chartDict = pickle.load(fp)
|
264 |
else :
|
265 |
chartDict=None
|
266 |
-
print(chartDict
|
267 |
if med:
|
268 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/medVocab", 'rb') as fp:
|
269 |
medDict = pickle.load(fp)
|
|
|
258 |
if chart:
|
259 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/chartVocab", 'rb') as fp:
|
260 |
chartDict = pickle.load(fp)
|
261 |
+
elif lab:
|
262 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/labsVocab", 'rb') as fp:
|
263 |
chartDict = pickle.load(fp)
|
264 |
else :
|
265 |
chartDict=None
|
266 |
+
print(chartDict)
|
267 |
if med:
|
268 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/medVocab", 'rb') as fp:
|
269 |
medDict = pickle.load(fp)
|