Francisco Castillo commited on
Commit
d4ce05f
1 Parent(s): 0bf8681
Files changed (1) hide show
  1. reviews_with_drift.py +1 -4
reviews_with_drift.py CHANGED
@@ -129,7 +129,6 @@ class NewDataset(datasets.GeneratorBasedBuilder):
129
  # These kwargs will be passed to _generate_examples
130
  gen_kwargs={
131
  "filepath": extracted_paths['training'],
132
- "split": "training",
133
  },
134
  ),
135
  datasets.SplitGenerator(
@@ -137,7 +136,6 @@ class NewDataset(datasets.GeneratorBasedBuilder):
137
  # These kwargs will be passed to _generate_examples
138
  gen_kwargs={
139
  "filepath": extracted_paths['validation'],
140
- "split": "validation"
141
  },
142
  ),
143
  datasets.SplitGenerator(
@@ -145,7 +143,6 @@ class NewDataset(datasets.GeneratorBasedBuilder):
145
  # These kwargs will be passed to _generate_examples
146
  gen_kwargs={
147
  "filepath": extracted_paths['production'],
148
- "split": "production",
149
  },
150
  ),
151
  ]
@@ -186,7 +183,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
186
  # ]
187
 
188
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
189
- def _generate_examples(self, filepath, split):
190
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
191
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
192
  with open(filepath, encoding="utf-8") as csv_file:
 
129
  # These kwargs will be passed to _generate_examples
130
  gen_kwargs={
131
  "filepath": extracted_paths['training'],
 
132
  },
133
  ),
134
  datasets.SplitGenerator(
 
136
  # These kwargs will be passed to _generate_examples
137
  gen_kwargs={
138
  "filepath": extracted_paths['validation'],
 
139
  },
140
  ),
141
  datasets.SplitGenerator(
 
143
  # These kwargs will be passed to _generate_examples
144
  gen_kwargs={
145
  "filepath": extracted_paths['production'],
 
146
  },
147
  ),
148
  ]
 
183
  # ]
184
 
185
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
186
+ def _generate_examples(self, filepath):
187
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
188
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
189
  with open(filepath, encoding="utf-8") as csv_file: