Datasets:

Modalities:
Text
ArXiv:
Libraries:
Datasets
lovodkin93 commited on
Commit
1342469
1 Parent(s): 066e137

update script

Browse files
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": "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
 
@@ -408,19 +408,7 @@ class ControlledTectReduction(datasets.GeneratorBasedBuilder):
408
  corpora = {section: Path(dl_manager.download_and_extract(URLs[section]))
409
  for section in URLs}
410
 
411
- if self.config.data_source=="CNN-DM":
412
- return [
413
- datasets.SplitGenerator(
414
- name=datasets.Split.TRAIN,
415
- # These kwargs will be passed to _generate_examples
416
- gen_kwargs={
417
- "filepath": corpora["train"]
418
- },
419
- )
420
- ]
421
-
422
- else:
423
- return [
424
  datasets.SplitGenerator(
425
  name=datasets.Split.TRAIN,
426
  # These kwargs will be passed to _generate_examples
 
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
 
 
408
  corpora = {section: Path(dl_manager.download_and_extract(URLs[section]))
409
  for section in URLs}
410
 
411
+ return [
 
 
 
 
 
 
 
 
 
 
 
 
412
  datasets.SplitGenerator(
413
  name=datasets.Split.TRAIN,
414
  # These kwargs will be passed to _generate_examples