Datasets:

Modalities:
Text
ArXiv:
Libraries:
Datasets
lovodkin93 commited on
Commit
b6f31bf
1 Parent(s): 0117c59
Controlled-Text-Reduction-dataset.py CHANGED
@@ -308,8 +308,8 @@ _URLs = {
308
  },
309
  "CNN-DM": {
310
  "train": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/train_CNNDM.csv",
311
- "dev": "",
312
- "test": "",
313
  },
314
  }
315
 
@@ -417,6 +417,20 @@ class ControlledTectReduction(datasets.GeneratorBasedBuilder):
417
  "filepath": corpora["train"]
418
  },
419
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
420
  ]
421
  else:
422
 
 
308
  },
309
  "CNN-DM": {
310
  "train": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/train_CNNDM.csv",
311
+ "dev": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/dev_DUC-2001-2002.csv",
312
+ "test": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/test_DUC-2001-2002.csv",
313
  },
314
  }
315
 
 
417
  "filepath": corpora["train"]
418
  },
419
  ),
420
+ datasets.SplitGenerator(
421
+ name=datasets.Split.VALIDATION,
422
+ # These kwargs will be passed to _generate_examples
423
+ gen_kwargs={
424
+ "filepath": corpora["dev"]
425
+ },
426
+ ),
427
+ datasets.SplitGenerator(
428
+ name=datasets.Split.TEST,
429
+ # These kwargs will be passed to _generate_examples
430
+ gen_kwargs={
431
+ "filepath": corpora["test"]
432
+ },
433
+ ),
434
  ]
435
  else:
436