jayliqinzhang commited on
Commit
68934f5
1 Parent(s): fab0268

Upload mumospee_small.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. mumospee_small.py +4 -4
mumospee_small.py CHANGED
@@ -111,15 +111,15 @@ class MumospeeDataset(datasets.GeneratorBasedBuilder):
111
  return [
112
  datasets.SplitGenerator(
113
  name=datasets.Split.TRAIN,
114
- gen_kwargs={"filepath": csv_path, "split":"train", "dl_manager": dl_manager}
115
  ),
116
  datasets.SplitGenerator(
117
  name=datasets.Split.VALIDATION,
118
- gen_kwargs={"filepath": csv_path, "split":"validation", "dl_manager": dl_manager}
119
  ),
120
  datasets.SplitGenerator(
121
  name=datasets.Split.TEST,
122
- gen_kwargs={"filepath": csv_path, "split":"test", "dl_manager": dl_manager}
123
  ),
124
  ]
125
 
@@ -127,7 +127,7 @@ class MumospeeDataset(datasets.GeneratorBasedBuilder):
127
  return [
128
  datasets.SplitGenerator(
129
  name = getattr(Split, self.config.name.upper()),
130
- gen_kwargs={"filepath": csv_path, "split": self.config.name, "dl_manager": dl_manager}
131
  ),
132
  ]
133
 
 
111
  return [
112
  datasets.SplitGenerator(
113
  name=datasets.Split.TRAIN,
114
+ gen_kwargs={"filepath": csv_path, "dl_manager": dl_manager}
115
  ),
116
  datasets.SplitGenerator(
117
  name=datasets.Split.VALIDATION,
118
+ gen_kwargs={"filepath": csv_path, "dl_manager": dl_manager}
119
  ),
120
  datasets.SplitGenerator(
121
  name=datasets.Split.TEST,
122
+ gen_kwargs={"filepath": csv_path, "dl_manager": dl_manager}
123
  ),
124
  ]
125
 
 
127
  return [
128
  datasets.SplitGenerator(
129
  name = getattr(Split, self.config.name.upper()),
130
+ gen_kwargs={"filepath": csv_path, "dl_manager": dl_manager}
131
  ),
132
  ]
133