maxisawesome commited on
Commit
5584129
1 Parent(s): b71c950
Files changed (1) hide show
  1. test_dataset.py +8 -5
test_dataset.py CHANGED
@@ -25,8 +25,6 @@ class TestDatasetConfig(datasets.BuilderConfig):
25
  def __init__(
26
  self,
27
  text_features,
28
- hero = "juggernaut",
29
- foo = "foo",
30
  process_label=lambda x: x,
31
  **kwargs,
32
  ):
@@ -48,7 +46,6 @@ class TestDatasetConfig(datasets.BuilderConfig):
48
  """
49
  super(TestDatasetConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
50
  self.text_features = text_features
51
- self.hero = hero
52
  self.foo = foo
53
  self.process_label = process_label
54
 
@@ -58,11 +55,17 @@ class TestDatasetEvals(datasets.GeneratorBasedBuilder):
58
 
59
  BUILDER_CONFIGS = [
60
  TestDatasetConfig(
61
- name="name_for_test_dataset",
62
  description= "this is a test dataset for our unit test intergrating HF datasets" ,
63
  text_features={"context": "context", "answer": "answer"},
64
  data_dir="heroes",
65
  ),
 
 
 
 
 
 
66
  ]
67
 
68
  def _info(self):
@@ -87,7 +90,7 @@ class TestDatasetEvals(datasets.GeneratorBasedBuilder):
87
  ]
88
 
89
  def construct_filepath(self):
90
- return self.config.hero + '/' + self.config.data_dir + '/data.jsonl'
91
 
92
  def _generate_examples(self, data_file):
93
  with open(data_file, encoding="utf8") as f:
 
25
  def __init__(
26
  self,
27
  text_features,
 
 
28
  process_label=lambda x: x,
29
  **kwargs,
30
  ):
 
46
  """
47
  super(TestDatasetConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
48
  self.text_features = text_features
 
49
  self.foo = foo
50
  self.process_label = process_label
51
 
 
55
 
56
  BUILDER_CONFIGS = [
57
  TestDatasetConfig(
58
+ name="juggernaut",
59
  description= "this is a test dataset for our unit test intergrating HF datasets" ,
60
  text_features={"context": "context", "answer": "answer"},
61
  data_dir="heroes",
62
  ),
63
+ TestDatasetConfig(
64
+ name="invoker",
65
+ description= "this is a test dataset for our unit test intergrating HF datasets" ,
66
+ text_features={"quas": "quas stats", "wex": "wex stats", "exort": "exort stats", "spell": "spell invoked"},
67
+ data_dir="heroes",
68
+ ),
69
  ]
70
 
71
  def _info(self):
 
90
  ]
91
 
92
  def construct_filepath(self):
93
+ return self.config.name + '/data.jsonl'
94
 
95
  def _generate_examples(self, data_file):
96
  with open(data_file, encoding="utf8") as f: