thbndi commited on
Commit
2fa0eb5
1 Parent(s): 2e3db07

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +8 -1
Mimic4Dataset.py CHANGED
@@ -553,7 +553,10 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
553
 
554
  elif self.encoding == 'tensor' :
555
  return self._info_deep()
556
-
 
 
 
557
  else:
558
  return self._info_raw()
559
 
@@ -577,5 +580,9 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
577
 
578
  elif self.encoding == 'tensor' :
579
  yield from self._generate_examples_deep(filepath)
 
 
 
 
580
  else :
581
  yield from self._generate_examples_raw(filepath)
 
553
 
554
  elif self.encoding == 'tensor' :
555
  return self._info_deep()
556
+
557
+ elif self.encoding == 'text' :
558
+ return self._info_text()
559
+
560
  else:
561
  return self._info_raw()
562
 
 
580
 
581
  elif self.encoding == 'tensor' :
582
  yield from self._generate_examples_deep(filepath)
583
+
584
+ elif self.encoding == 'text' :
585
+ yield from self._generate_examples_text(filepath)
586
+
587
  else :
588
  yield from self._generate_examples_raw(filepath)