Datasets:

ArXiv:
License:
suolyer commited on
Commit
1f4e257
1 Parent(s): 314cc95

Update testb.py

Browse files
Files changed (1) hide show
  1. testb.py +6 -1
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