Padomin commited on
Commit
411c1bc
1 Parent(s): 9b531a9

Update coraal-asr.py

Browse files
Files changed (1) hide show
  1. coraal-asr.py +6 -0
coraal-asr.py CHANGED
@@ -37,6 +37,9 @@ URLS = {
37
  },
38
  "v2": {
39
  "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-asr-v2.tar.gz",
 
 
 
40
  }
41
  }
42
 
@@ -56,6 +59,7 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
56
  BUILDER_CONFIGS = [
57
  coraal_asr_config(name="v1", version=VERSION),
58
  coraal_asr_config(name="v2", version=VERSION),
 
59
  ]
60
  DEFAULT_CONFIG_NAME = "v2" # It's not mandatory to have a default configuration. Just use one if it make sense.
61
  BUILDER_CONFIG_CLASS = coraal_asr_config
@@ -85,6 +89,8 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
85
  urls = deepcopy(URLS["v1"])
86
  if "v2" in self.config.name:
87
  urls = deepcopy(URLS["v2"])
 
 
88
 
89
  dl_path = dl_manager.download_and_extract(urls)
90
 
 
37
  },
38
  "v2": {
39
  "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-asr-v2.tar.gz",
40
+ },
41
+ "ctc-large": {
42
+ "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-ctc-large.tar.gz",
43
  }
44
  }
45
 
 
59
  BUILDER_CONFIGS = [
60
  coraal_asr_config(name="v1", version=VERSION),
61
  coraal_asr_config(name="v2", version=VERSION),
62
+ coraal_asr_config(name="ctc-large", version=VERSION),
63
  ]
64
  DEFAULT_CONFIG_NAME = "v2" # It's not mandatory to have a default configuration. Just use one if it make sense.
65
  BUILDER_CONFIG_CLASS = coraal_asr_config
 
89
  urls = deepcopy(URLS["v1"])
90
  if "v2" in self.config.name:
91
  urls = deepcopy(URLS["v2"])
92
+ if "ctc-large" in self.config.name:
93
+ urls = deepcopy(URLS["ctc-large"])
94
 
95
  dl_path = dl_manager.download_and_extract(urls)
96