Pavankalyan commited on
Commit
ff38014
·
verified ·
1 Parent(s): c430267

Update WikiDO.py

Browse files
Files changed (1) hide show
  1. WikiDO.py +0 -37
WikiDO.py CHANGED
@@ -102,43 +102,6 @@ class WikiDO(datasets.GeneratorBasedBuilder):
102
  citation=_CITATION,
103
  )
104
 
105
- def _split_generators(self, dl_manager):
106
- # TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
107
- # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
108
-
109
- # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
110
- # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
111
- # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
112
-
113
- data_dir = dl_manager.download_and_extract(_URLS)
114
- return [
115
- datasets.SplitGenerator(
116
- name=datasets.Split.TRAIN,
117
- # These kwargs will be passed to _generate_examples
118
- gen_kwargs={
119
- "filepath": os.path.join(data_dir, "train.jsonl"),
120
- "split": "train",
121
- },
122
- ),
123
- datasets.SplitGenerator(
124
- name=datasets.Split.VALIDATION,
125
- # These kwargs will be passed to _generate_examples
126
- gen_kwargs={
127
- "filepath": os.path.join(data_dir, "dev.jsonl"),
128
- "split": "dev",
129
- },
130
- ),
131
- datasets.SplitGenerator(
132
- name=datasets.Split.TEST,
133
- # These kwargs will be passed to _generate_examples
134
- gen_kwargs={
135
- "filepath": os.path.join(data_dir, "test.jsonl"),
136
- "split": "test"
137
- },
138
- ),
139
- ]
140
-
141
-
142
  def _split_generators(self, dl_manager):
143
  # Define the local paths to the dataset files
144
  data_dir = os.path.dirname(__file__)
 
102
  citation=_CITATION,
103
  )
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  def _split_generators(self, dl_manager):
106
  # Define the local paths to the dataset files
107
  data_dir = os.path.dirname(__file__)