salavina commited on
Commit
2230fe2
1 Parent(s): a24b380

Update OCW.py

Browse files
Files changed (1) hide show
  1. OCW.py +8 -16
OCW.py CHANGED
@@ -77,24 +77,16 @@ class OCW(datasets.GeneratorBasedBuilder):
77
  "episode": datasets.Value("int32"),
78
  "words": datasets.Value("list"),
79
  "gt_connections": datasets.Value("list"),
80
- "groups": datasets.features.Sequence(
81
- {
82
-
83
- "group_id": datasets.Value("string"),
84
- "gt_words": datasets.Value("list"),
85
- "gt_connection": datasets.Value("list"),
86
- "human_performance": datasets.features.Sequence(
87
- {
88
- "grouping": datasets.Value("int32"),
89
- "connection": datasets.Value("int32")
90
- }
91
- ),
92
- }
93
- ),
94
  }
95
  ),
96
  }
97
- )
 
98
  return datasets.DatasetInfo(
99
  # This is the description that will appear on the datasets page.
100
  description=_DESCRIPTION,
@@ -111,7 +103,7 @@ class OCW(datasets.GeneratorBasedBuilder):
111
  def _split_generators(self, dl_manager):
112
  test_url = _URLS[self.config.name + '_test']
113
  # only test set is randomized for ablation studies
114
- if self.config.name == 'ocw_randomized':
115
  train_url = _URLS['ocw_train']
116
  validation_url = _URLS['ocw_validation']
117
  else:
 
77
  "episode": datasets.Value("int32"),
78
  "words": datasets.Value("list"),
79
  "gt_connections": datasets.Value("list"),
80
+ "group_id": datasets.Value("string"),
81
+ "gt_words": datasets.Value("list"),
82
+ "gt_connection": datasets.Value("list"),
83
+ "grouping": datasets.Value("int32"),
84
+ "connection": datasets.Value("int32")
 
 
 
 
 
 
 
 
 
85
  }
86
  ),
87
  }
88
+ ),
89
+
90
  return datasets.DatasetInfo(
91
  # This is the description that will appear on the datasets page.
92
  description=_DESCRIPTION,
 
103
  def _split_generators(self, dl_manager):
104
  test_url = _URLS[self.config.name + '_test']
105
  # only test set is randomized for ablation studies
106
+ if 'ocw_randomized' in self.config.name:
107
  train_url = _URLS['ocw_train']
108
  validation_url = _URLS['ocw_validation']
109
  else: