Add parser
Browse files
bibles.py
CHANGED
@@ -238,6 +238,6 @@ class Bibles(datasets.GeneratorBasedBuilder):
|
|
238 |
for idx, (text, label, language) in enumerate(csv_reader):
|
239 |
yield int(idx), {
|
240 |
"text": text,
|
241 |
-
"label": self.
|
242 |
-
"language": self.
|
243 |
}
|
|
|
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": self.languages.index(language),
|
243 |
}
|