Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +5 -5
Mimic4Dataset.py
CHANGED
@@ -252,17 +252,17 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
252 |
procDict=None
|
253 |
if out:
|
254 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/outVocab", 'rb') as fp:
|
255 |
-
|
256 |
else :
|
257 |
-
|
258 |
if chart:
|
259 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/chartVocab", 'rb') as fp:
|
260 |
-
|
261 |
if lab:
|
262 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/labsVocab", 'rb') as fp:
|
263 |
-
|
264 |
else :
|
265 |
-
|
266 |
if med:
|
267 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/medVocab", 'rb') as fp:
|
268 |
medDict = pickle.load(fp)
|
|
|
252 |
procDict=None
|
253 |
if out:
|
254 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/outVocab", 'rb') as fp:
|
255 |
+
outDict = pickle.load(fp)
|
256 |
else :
|
257 |
+
outDict=None
|
258 |
if chart:
|
259 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/chartVocab", 'rb') as fp:
|
260 |
+
chartDict = pickle.load(fp)
|
261 |
if 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 |
if med:
|
267 |
with open("./data/dict/"+self.config.name.replace(" ","_")+"/medVocab", 'rb') as fp:
|
268 |
medDict = pickle.load(fp)
|