Datasets:

ArXiv:
License:
suolyer commited on
Commit
9d88bff
1 Parent(s): 1f4e257

Update testb.py

Browse files
Files changed (1) hide show
  1. testb.py +9 -0
testb.py CHANGED
@@ -41,6 +41,15 @@ class TestB(datasets.GeneratorBasedBuilder):
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:
 
41
  name="data2",
42
  data_url="./data2",
43
  )]
44
+
45
+ def _info(self):
46
+ features = {feature: datasets.Value("string") for feature in self.config.features}
47
+
48
+ return datasets.DatasetInfo(
49
+ description='desc',
50
+ features=datasets.Features(features),
51
+ )
52
+
53
  def _generate_examples(self, data_file, split):
54
  with open(data_file, encoding="utf-8") as f:
55
  for line in f: