ejschwartz commited on
Commit
755bba7
1 Parent(s): 9b1a759

Add features

Browse files
Files changed (1) hide show
  1. oo-method-test-split.py +9 -1
oo-method-test-split.py CHANGED
@@ -45,7 +45,15 @@ class OOMethodTestDataset(datasets.ArrowBasedBuilder):
45
  super().__init__(*args, **kwargs)
46
 
47
  def _info(self):
48
- return datasets.DatasetInfo()
 
 
 
 
 
 
 
 
49
 
50
  def _split_generators(self, dl_manager):
51
  ds = datasets.load_dataset(BASE_DATASET)['combined']
 
45
  super().__init__(*args, **kwargs)
46
 
47
  def _info(self):
48
+ return datasets.DatasetInfo(
49
+ features = {'Binary': Value(dtype='string', id=None),
50
+ 'Addr': Value(dtype='string', id=None),
51
+ 'Name': Value(dtype='string', id=None),
52
+ 'Type': ClassLabel(num_classes=2, names=['func', 'method']),
53
+ 'Disassembly': Value(dtype='string', id=None),
54
+ 'Dirname': Value(dtype='string', id=None),
55
+ 'Exename': Value(dtype='string', id=None)}
56
+ )
57
 
58
  def _split_generators(self, dl_manager):
59
  ds = datasets.load_dataset(BASE_DATASET)['combined']