Felix commited on
Commit
13105d9
1 Parent(s): befc158

sync changes done to swediagnostics on GH

Browse files
data/swediagnostics/swediagnostics_test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2546a6c29b25961100f1e10d83851340f254d8c4cf3af181d3edeb946274baab
3
- size 449255
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f8758a7ae8f3b1478b7bc56e8175ddfb9c1cea123e62e5eaac72fc638357de8
3
+ size 440635
superlim-2.py CHANGED
@@ -221,14 +221,16 @@ class SuperLim(datasets.GeneratorBasedBuilder):
221
  })
222
  elif self.config.name == 'swediagnostics':
223
  features = datasets.Features({
224
- 'lexical_semantics': datasets.Value("string"),
225
- 'predicate_argument_structure': datasets.Value("string"),
226
- 'logic': datasets.Value("string"),
227
- 'knowledge': datasets.Value("string"),
228
- 'domain': datasets.Value("string"),
229
  'premise': datasets.Value("string"),
230
  'hypothesis': datasets.Value("string"),
231
- 'label': datasets.ClassLabel(num_classes=3, names=['entailment', 'contradiction', 'neutral'])
 
 
 
 
 
 
 
232
  })
233
  elif self.config.name == 'swedn':
234
  features = datasets.Features({
 
221
  })
222
  elif self.config.name == 'swediagnostics':
223
  features = datasets.Features({
 
 
 
 
 
224
  'premise': datasets.Value("string"),
225
  'hypothesis': datasets.Value("string"),
226
+ 'label': datasets.ClassLabel(num_classes=3, names=['entailment', 'contradiction', 'neutral']),
227
+ 'meta': datasets.Features({
228
+ 'lexical_semantics': datasets.Value("string"),
229
+ 'predicate_argument_structure': datasets.Value("string"),
230
+ 'logic': datasets.Value("string"),
231
+ 'knowledge': datasets.Value("string"),
232
+ 'domain': datasets.Value("string")
233
+ })
234
  })
235
  elif self.config.name == 'swedn':
236
  features = datasets.Features({