Felix commited on
Commit
dda7cb6
1 Parent(s): 496fde2

add sentence_id to argumentation-sent and meta dict to dalaj-ged

Browse files
Files changed (1) hide show
  1. superlim-2.py +22 -1
superlim-2.py CHANGED
@@ -193,6 +193,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
193
  elif self.config.name == 'argumentation_sent':
194
  features = datasets.Features(
195
  {
 
196
  "topic": datasets.Value("string"),
197
  "label": datasets.Value("string"),
198
  "sentence": datasets.Value("string")
@@ -203,7 +204,26 @@ class SuperLim(datasets.GeneratorBasedBuilder):
203
  {
204
  "sentence": datasets.Value("string"),
205
  "label": datasets.Value("string"),
206
- "meta": datasets.Value("string")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  }
208
  )
209
  elif self.config.name == "sweana":
@@ -370,6 +390,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
370
  }
371
  elif self.config.name == "argumentation_sent":
372
  yield key, {
 
373
  "topic": row["topic"],
374
  "label": row["label"],
375
  "sentence" : row["sentence"],
 
193
  elif self.config.name == 'argumentation_sent':
194
  features = datasets.Features(
195
  {
196
+ "sentence_id": datasets.Value("string"),
197
  "topic": datasets.Value("string"),
198
  "label": datasets.Value("string"),
199
  "sentence": datasets.Value("string")
 
204
  {
205
  "sentence": datasets.Value("string"),
206
  "label": datasets.Value("string"),
207
+ "meta": datasets.Sequence(
208
+ feature={
209
+ 'error_span': datasets.Sequence(
210
+ feature={
211
+ 'start': datasets.Value(dtype='int64'),
212
+ 'stop': datasets.Value(dtype='int64')
213
+ }
214
+ ),
215
+ 'confusion_pair': datasets.Sequence(
216
+ feature={
217
+ 'incorrect_span': datasets.Value("string"),
218
+ 'correction': datasets.Value('string')
219
+ }
220
+ ),
221
+ 'error_label': datasets.Value("string"),
222
+ 'education_level': datasets.Value("string"),
223
+ 'l1': datasets.Value("string"),
224
+ 'data_source': datasets.Value("string")
225
+ }
226
+ )
227
  }
228
  )
229
  elif self.config.name == "sweana":
 
390
  }
391
  elif self.config.name == "argumentation_sent":
392
  yield key, {
393
+ "sentence_id": row["sentence_id"],
394
  "topic": row["topic"],
395
  "label": row["label"],
396
  "sentence" : row["sentence"],