Padomin commited on
Commit
66e36e4
·
1 Parent(s): c6447c2

Update coraal-asr.py

Browse files
Files changed (1) hide show
  1. coraal-asr.py +7 -2
coraal-asr.py CHANGED
@@ -35,6 +35,9 @@ URLS = {
35
  "v1": {
36
  "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-asr.tar.gz",
37
  }
 
 
 
38
  }
39
 
40
 
@@ -51,9 +54,9 @@ class coraal_asr_config(datasets.BuilderConfig):
51
  class coraal_asr(datasets.GeneratorBasedBuilder):
52
  VERSION = datasets.Version("0.2.0")
53
  BUILDER_CONFIGS = [
54
- coraal_asr_config(name="v1", version=VERSION),
55
  ]
56
- DEFAULT_CONFIG_NAME = "v1" # It's not mandatory to have a default configuration. Just use one if it make sense.
57
  BUILDER_CONFIG_CLASS = coraal_asr_config
58
 
59
  def _info(self):
@@ -79,6 +82,8 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
79
  """Returns SplitGenerators."""
80
  if "v1" in self.config.name:
81
  urls = deepcopy(URLS["v1"])
 
 
82
 
83
  dl_path = dl_manager.download_and_extract(urls)
84
 
 
35
  "v1": {
36
  "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-asr.tar.gz",
37
  }
38
+ "v2": {
39
+ "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-asr-v2.tar.gz",
40
+ }
41
  }
42
 
43
 
 
54
  class coraal_asr(datasets.GeneratorBasedBuilder):
55
  VERSION = datasets.Version("0.2.0")
56
  BUILDER_CONFIGS = [
57
+ coraal_asr_config(name="v2", version=VERSION),
58
  ]
59
+ DEFAULT_CONFIG_NAME = "v2" # It's not mandatory to have a default configuration. Just use one if it make sense.
60
  BUILDER_CONFIG_CLASS = coraal_asr_config
61
 
62
  def _info(self):
 
82
  """Returns SplitGenerators."""
83
  if "v1" in self.config.name:
84
  urls = deepcopy(URLS["v1"])
85
+ if "v2" in self.config.name:
86
+ urls = deepcopy(URLS["v2"])
87
 
88
  dl_path = dl_manager.download_and_extract(urls)
89