atenglens commited on
Commit
285c57c
·
1 Parent(s): 8f3cd2c

Update taiwanese_english_translation.py

Browse files
Files changed (1) hide show
  1. taiwanese_english_translation.py +3 -5
taiwanese_english_translation.py CHANGED
@@ -128,15 +128,13 @@ class TaiwaneseEnglishTranslation(datasets.GeneratorBasedBuilder):
128
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
129
  # 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.
130
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
131
- urls = _URLS
132
- data_dir = dl_manager.download_and_extract(urls)
133
 
134
- path_tmpl = "{data_dir}/{split}.csv"
135
-
136
  files = {}
137
  for split in ("train", "valid", "test"):
138
  files[split] = {
139
- "file_path": os.path.join(data_dir, f'{split}.csv')
140
  }
141
 
142
  return [
 
128
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
129
  # 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.
130
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
131
+ # urls = _URLS
132
+ # data_dir = dl_manager.download_and_extract(urls)
133
 
 
 
134
  files = {}
135
  for split in ("train", "valid", "test"):
136
  files[split] = {
137
+ "file_path": f'{split}.csv'
138
  }
139
 
140
  return [