Datasets:

Modalities:
Text
ArXiv:
Libraries:
Datasets
lovodkin93 commited on
Commit
1513b8a
1 Parent(s): 9e5af79

update script

Browse files
Controlled-Text-Reduction-dataset.py CHANGED
@@ -302,14 +302,14 @@ SOFTWARE."""
302
 
303
  _URLs = {
304
  "DUC-2001-2002": {
305
- "train": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/train_DUC-2001-2002.csv",
306
- "dev": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/dev_DUC-2001-2002.csv",
307
- "test": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/test_DUC-2001-2002.csv",
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
 
@@ -416,21 +416,7 @@ class ControlledTectReduction(datasets.GeneratorBasedBuilder):
416
  gen_kwargs={
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
 
436
  else:
 
302
 
303
  _URLs = {
304
  "DUC-2001-2002": {
305
+ "DUC-2001-2002.train": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/train_DUC-2001-2002.csv",
306
+ "DUC-2001-2002.dev": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/dev_DUC-2001-2002.csv",
307
+ "DUC-2001-2002.test": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/test_DUC-2001-2002.csv",
308
  },
309
  "CNN-DM": {
310
+ "CNN-DM.train": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/train_CNNDM.csv",
311
+ "CNN-DM.dev": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/dev_DUC-2001-2002.csv",
312
+ "CNN-DM.test": "https://media.githubusercontent.com/media/lovodkin93/Controlled_Text_Reduction/main/data/test_DUC-2001-2002.csv",
313
  },
314
  }
315
 
 
416
  gen_kwargs={
417
  "filepath": corpora["train"]
418
  },
419
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
420
  ]
421
 
422
  else: