Datasets:
Tasks:
Table to Text
Modalities:
Text
Languages:
English
Size:
100K - 1M
ArXiv:
Tags:
data-to-text
License:
Abinaya Mahendiran
commited on
Commit
·
ca65b5a
1
Parent(s):
7e08b55
Fixed indentation in data loader script
Browse files
totto.py
CHANGED
@@ -118,7 +118,7 @@ class Mlsum(datasets.GeneratorBasedBuilder):
|
|
118 |
|
119 |
def _generate_examples(self, filepath, split, filepaths=None, lang=None):
|
120 |
"""Yields examples."""
|
121 |
-
|
122 |
exples = json.load(open(filepath, encoding="utf-8"))
|
123 |
if isinstance(exples, dict):
|
124 |
assert len(exples) == 1, "multiple entries found"
|
|
|
118 |
|
119 |
def _generate_examples(self, filepath, split, filepaths=None, lang=None):
|
120 |
"""Yields examples."""
|
121 |
+
if "challenge" in split:
|
122 |
exples = json.load(open(filepath, encoding="utf-8"))
|
123 |
if isinstance(exples, dict):
|
124 |
assert len(exples) == 1, "multiple entries found"
|