Update testb.py
Browse files
testb.py
CHANGED
@@ -40,4 +40,9 @@ class TestB(datasets.GeneratorBasedBuilder):
|
|
40 |
TestBConfig(
|
41 |
name="data2",
|
42 |
data_url="./data2",
|
43 |
-
)]
|
|
|
|
|
|
|
|
|
|
|
|
40 |
TestBConfig(
|
41 |
name="data2",
|
42 |
data_url="./data2",
|
43 |
+
)]
|
44 |
+
def _generate_examples(self, data_file, split):
|
45 |
+
with open(data_file, encoding="utf-8") as f:
|
46 |
+
for line in f:
|
47 |
+
row = json.loads(line)
|
48 |
+
yield row
|