versae commited on
Commit
3ebdc7d
·
1 Parent(s): c1e6405

Skip header

Browse files
Files changed (1) hide show
  1. bibles.py +1 -0
bibles.py CHANGED
@@ -235,6 +235,7 @@ class Bibles(datasets.GeneratorBasedBuilder):
235
  def _generate_examples(self, filepath):
236
  with open(filepath, encoding="utf-8") as csv_file:
237
  csv_reader = csv.reader(csv_file, delimiter=",")
 
238
  for idx, (text, label, language) in enumerate(csv_reader):
239
  yield int(idx), {
240
  "text": text,
 
235
  def _generate_examples(self, filepath):
236
  with open(filepath, encoding="utf-8") as csv_file:
237
  csv_reader = csv.reader(csv_file, delimiter=",")
238
+ next(csv_reader) # skip header
239
  for idx, (text, label, language) in enumerate(csv_reader):
240
  yield int(idx), {
241
  "text": text,