mathiascreutz commited on
Commit
e7be9f6
1 Parent(s): 4840694

Testing configs

Browse files
Files changed (1) hide show
  1. opusparcus.py +4 -1
opusparcus.py CHANGED
@@ -45,7 +45,7 @@ _LICENSE = ""
45
 
46
  _URLs = {
47
 
48
- "train": "train_",
49
  "validation": "validation.jsonl",
50
  "test": "test.jsonl"
51
 
@@ -134,6 +134,9 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
134
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs
135
  # 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.
136
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
 
 
 
137
  data_dir = dl_manager.download_and_extract(_URLs)
138
  return [
139
  datasets.SplitGenerator(
 
45
 
46
  _URLs = {
47
 
48
+ "train": None,
49
  "validation": "validation.jsonl",
50
  "test": "test.jsonl"
51
 
 
134
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs
135
  # 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.
136
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
137
+
138
+ _URLs["train"] = "train_{0}.jsonl.bz2".format(self.config.lang)
139
+
140
  data_dir = dl_manager.download_and_extract(_URLs)
141
  return [
142
  datasets.SplitGenerator(