Skip header
Browse files
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,
|