junnei commited on
Commit
f20d55b
·
verified ·
1 Parent(s): 3c53d11

Upload covost2.py

Browse files
Files changed (1) hide show
  1. covost2.py +2 -2
covost2.py CHANGED
@@ -60,7 +60,7 @@ dataset = dataset.map(map_to_array, remove_columns=["file"])
60
  _HOMEPAGE = "https://github.com/facebookresearch/covost"
61
 
62
  # fmt: off
63
- XX_EN_LANGUAGES = ["fr", "de", "es", "ca", "it", "ru", "zh-CN", "pt", "fa", "et", "mn", "nl", "tr", "ar", "sv-SE", "lv", "sl", "ta", "ja", "id", "cy"]
64
  EN_XX_LANGUAGES = ["de", "tr", "fa", "sv-SE", "mn", "zh-CN", "cy", "ca", "sl", "et", "id", "ar", "ta", "lv", "ja", "ko"]
65
  # fmt: on
66
 
@@ -87,7 +87,7 @@ class Covost2(datasets.GeneratorBasedBuilder):
87
 
88
  @property
89
  def manual_download_instructions(self):
90
- return f"""Please download the Common Voice Corpus 4 in {self.config.name.split('_')[0]} from https://commonvoice.mozilla.org/en/datasets and unpack it with `tar xvzf {self.config.name.split('_')[0]}.tar`. Make sure to pass the path to the directory in which you unpacked the downloaded file as `data_dir`: `datasets.load_dataset('covost2', data_dir="path/to/dir")`
91
  """
92
 
93
  def _info(self):
 
60
  _HOMEPAGE = "https://github.com/facebookresearch/covost"
61
 
62
  # fmt: off
63
+ XX_EN_LANGUAGES = ["fr", "de", "es", "ca", "it", "ru", "zh-CN", "pt", "fa", "et", "mn", "nl", "tr", "ar", "sv-SE", "lv", "sl", "ta", "ja", "id", "cy", "ko"]
64
  EN_XX_LANGUAGES = ["de", "tr", "fa", "sv-SE", "mn", "zh-CN", "cy", "ca", "sl", "et", "id", "ar", "ta", "lv", "ja", "ko"]
65
  # fmt: on
66
 
 
87
 
88
  @property
89
  def manual_download_instructions(self):
90
+ return f"""Please download the Common Voice Corpus {'20' if self.config.name.split('_')[0] == 'ko' else '4'} in {self.config.name.split('_')[0]} from https://commonvoice.mozilla.org/en/datasets and unpack it with `tar xvzf {self.config.name.split('_')[0]}.tar`. Make sure to pass the path to the directory in which you unpacked the downloaded file as `data_dir`: `datasets.load_dataset('covost2', data_dir="path/to/dir")`
91
  """
92
 
93
  def _info(self):