Padomin commited on
Commit
229f750
1 Parent(s): 66e6f94

Update coraal-asr.py

Browse files
Files changed (1) hide show
  1. coraal-asr.py +6 -0
coraal-asr.py CHANGED
@@ -41,6 +41,9 @@ URLS = {
41
  "ctc-large": {
42
  "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-ctc-large.tar.gz",
43
  },
 
 
 
44
  "xlsr": {
45
  "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-xlsr.tar.gz",
46
  },
@@ -69,6 +72,7 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
69
  coraal_asr_config(name="xlsr", version=VERSION),
70
  coraal_asr_config(name="whisper-small", version=VERSION),
71
  coraal_asr_config(name="ctc-large-oracle", version=VERSION),
 
72
  ]
73
  DEFAULT_CONFIG_NAME = "ctc-large" # It's not mandatory to have a default configuration. Just use one if it make sense.
74
  BUILDER_CONFIG_CLASS = coraal_asr_config
@@ -106,6 +110,8 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
106
  urls = deepcopy(URLS["whisper-small"])
107
  if "ctc-large-oracle" in self.config.name:
108
  urls = deepcopy(URLS["ctc-large"])
 
 
109
 
110
  dl_path = dl_manager.download_and_extract(urls)
111
 
 
41
  "ctc-large": {
42
  "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-ctc-large.tar.gz",
43
  },
44
+ "ctc-large-beam": {
45
+ "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-ctc-large-beam.tar.gz",
46
+ },
47
  "xlsr": {
48
  "text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-xlsr.tar.gz",
49
  },
 
72
  coraal_asr_config(name="xlsr", version=VERSION),
73
  coraal_asr_config(name="whisper-small", version=VERSION),
74
  coraal_asr_config(name="ctc-large-oracle", version=VERSION),
75
+ coraal_asr_config(name="ctc-large-beam", version=VERSION),
76
  ]
77
  DEFAULT_CONFIG_NAME = "ctc-large" # It's not mandatory to have a default configuration. Just use one if it make sense.
78
  BUILDER_CONFIG_CLASS = coraal_asr_config
 
110
  urls = deepcopy(URLS["whisper-small"])
111
  if "ctc-large-oracle" in self.config.name:
112
  urls = deepcopy(URLS["ctc-large"])
113
+ if "ctc-large-beam" in self.config.name:
114
+ urls = deepcopy(URLS["ctc-large-beam"])
115
 
116
  dl_path = dl_manager.download_and_extract(urls)
117