cyrilzhang commited on
Commit
0a3368a
·
1 Parent(s): 03bcb43

Update automata.py

Browse files
Files changed (1) hide show
  1. automata.py +4 -4
automata.py CHANGED
@@ -61,8 +61,8 @@ class MockupDataset(datasets.GeneratorBasedBuilder):
61
  def _info(self):
62
  features = datasets.Features(
63
  {
64
- "x": datasets.Sequence(datasets.Value("int32"), length=-1),
65
- "y": datasets.Sequence(datasets.Value("int32"), length=-1)
66
  }
67
  )
68
 
@@ -89,8 +89,8 @@ class MockupDataset(datasets.GeneratorBasedBuilder):
89
  for i in range(self.data_config['size']):
90
  x, y = self.sampler.sample()
91
  yield i, {
92
- "x": x,
93
- "y": y
94
  }
95
 
96
 
 
61
  def _info(self):
62
  features = datasets.Features(
63
  {
64
+ "input_ids": datasets.Sequence(datasets.Value("int32"), length=-1),
65
+ "label_ids": datasets.Sequence(datasets.Value("int32"), length=-1)
66
  }
67
  )
68
 
 
89
  for i in range(self.data_config['size']):
90
  x, y = self.sampler.sample()
91
  yield i, {
92
+ "input_ids": x,
93
+ "label_ids": y
94
  }
95
 
96