heegyu commited on
Commit
ab97322
1 Parent(s): 9c6d04a

dask index 제거

Browse files
kowikitext-20221001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:044a898dd91beea189fe067c7aab4d3ed2c54fec8b2ff12d923918bc4a52c834
3
- size 502246083
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:410bef2eadc62eb374bb92d23956b9aa11f9810bfdd52b6a664211183b146cfd
3
+ size 497900749
kowikitext_dataset_script.py CHANGED
@@ -110,32 +110,9 @@ class KowikitextDataset(datasets.GeneratorBasedBuilder):
110
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
111
  urls = _URLS[self.config.name]
112
  data_dir = dl_manager.download_and_extract(urls)
113
- return [
114
- datasets.SplitGenerator(
115
- name=datasets.Split.TRAIN,
116
- # These kwargs will be passed to _generate_examples
117
- gen_kwargs={
118
- "filepath": os.path.join(data_dir, "train.jsonl"),
119
- "split": "train",
120
- },
121
- ),
122
- # datasets.SplitGenerator(
123
- # name=datasets.Split.VALIDATION,
124
- # # These kwargs will be passed to _generate_examples
125
- # gen_kwargs={
126
- # "filepath": os.path.join(data_dir, "dev.jsonl"),
127
- # "split": "dev",
128
- # },
129
- # ),
130
- # datasets.SplitGenerator(
131
- # name=datasets.Split.TEST,
132
- # # These kwargs will be passed to _generate_examples
133
- # gen_kwargs={
134
- # "filepath": os.path.join(data_dir, "test.jsonl"),
135
- # "split": "test"
136
- # },
137
- # ),
138
- ]
139
 
140
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
141
  def _generate_examples(self, filepath, split):
 
110
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
111
  urls = _URLS[self.config.name]
112
  data_dir = dl_manager.download_and_extract(urls)
113
+
114
+ # no split
115
+ return []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
 
117
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
118
  def _generate_examples(self, filepath, split):