Update bibles.py
Browse files
bibles.py
CHANGED
@@ -235,9 +235,11 @@ class Bibles(datasets.GeneratorBasedBuilder):
|
|
235 |
with open(filepath, encoding="utf-8") as csv_file:
|
236 |
csv_reader = csv.reader(csv_file, delimiter=",")
|
237 |
next(csv_reader) # skip header
|
238 |
-
for idx, (text, label, language) in enumerate(csv_reader):
|
239 |
yield int(idx), {
|
240 |
"text": text,
|
241 |
"label": self.labels.index(label),
|
242 |
"language": language,
|
|
|
|
|
243 |
}
|
|
|
235 |
with open(filepath, encoding="utf-8") as csv_file:
|
236 |
csv_reader = csv.reader(csv_file, delimiter=",")
|
237 |
next(csv_reader) # skip header
|
238 |
+
for idx, (text, label, language, year, century) in enumerate(csv_reader):
|
239 |
yield int(idx), {
|
240 |
"text": text,
|
241 |
"label": self.labels.index(label),
|
242 |
"language": language,
|
243 |
+
"year": year,
|
244 |
+
"century": century,
|
245 |
}
|