laubonghaudoi commited on
Commit
be6ff51
·
1 Parent(s): ebbd678

更新數據集連接

Browse files
Files changed (1) hide show
  1. README.md +45 -45
README.md CHANGED
@@ -1,48 +1,48 @@
1
  ---
2
  language:
3
- - yue
4
  license: cc0-1.0
5
  size_categories:
6
- - 10K<n<100K
7
  task_categories:
8
- - automatic-speech-recognition
9
- - text-to-speech
10
- - text-generation
11
- - feature-extraction
12
- - audio-to-audio
13
- - audio-classification
14
- - text-to-audio
15
  pretty_name: c
16
  configs:
17
- - config_name: default
18
- data_files:
19
- - split: saamgwokjinji
20
- path: data/saamgwokjinji-*
21
- - split: seoiwuzyun
22
- path: data/seoiwuzyun-*
23
  tags:
24
- - cantonese
25
- - audio
26
- - art
27
  dataset_info:
28
  features:
29
- - name: audio
30
- dtype: audio
31
- - name: id
32
- dtype: string
33
- - name: episode_id
34
- dtype: int64
35
- - name: audio_duration
36
- dtype: float64
37
- - name: transcription
38
- dtype: string
39
  splits:
40
- - name: saamgwokjinji
41
- num_bytes: 2398591354.589
42
- num_examples: 39173
43
- - name: seoiwuzyun
44
- num_bytes: 1629539808.0
45
- num_examples: 24744
46
  download_size: 4046904982
47
  dataset_size: 4028131162.589
48
  ---
@@ -85,7 +85,7 @@ TTS 效果演示:https://huggingface.co/spaces/laubonghaudoi/zoengjyutgaai_tts
85
  ```python
86
  from datasets import load_dataset
87
 
88
- ds = load_dataset("CanCLID/zoengjyutgaai_saamgwokjinji")
89
  ```
90
 
91
  如果想單純將 `opus/` 入面所有嘢下載落嚟,可以跑下面嘅 Python 代碼,注意要安裝 `pip install --upgrade huggingface_hub` 先:
@@ -94,17 +94,17 @@ ds = load_dataset("CanCLID/zoengjyutgaai_saamgwokjinji")
94
  from huggingface_hub import snapshot_download
95
 
96
  # 如果你淨係想下載啲字幕或者源音頻,噉就將下面嘅 `wav/*` 改成 `srt/*` 或者 `webm/*`
97
- snapshot_download(repo_id="CanCLID/zoengjyutgaai_saamgwokjinji",allow_patterns="opus/*",local_dir="./",repo_type="dataset")
98
  ```
99
 
100
  如果唔想用 python,你亦都可以用命令行叫 git 針對克隆個`opus/`或者其他路經,避免將成個 repo 都克隆落嚟浪費空間同下載時間:
101
 
102
  ```bash
103
- mkdir zoengjyutgaai_saamgwokjinji
104
- cd zoengjyutgaai_saamgwokjinji
105
  git init
106
 
107
- git remote add origin https://huggingface.co/datasets/CanCLID/zoengjyutgaai_saamgwokjinji
108
  git sparse-checkout init --cone
109
 
110
  # 指定凈係下載個別路徑
@@ -140,7 +140,7 @@ dataset['train'][0]
140
  # 準備好個 token 嚟登入
141
  login()
142
  # 推上 HuggingFace datasets
143
- dataset.push_to_hub("CanCLID/zoengjyutgaai_saamgwokjinji")
144
  ```
145
 
146
  ### 音頻格式轉換
@@ -196,7 +196,7 @@ To use this dataset, simply run in Python:
196
  ```python
197
  from datasets import load_dataset
198
 
199
- ds = load_dataset("CanCLID/zoengjyutgaai_saamgwokjinji")
200
  ```
201
 
202
  If you only want to download a certain directory to save time and space from cloning the entire repo, run the Python codes below. Make sure you have `pip install --upgrade huggingface_hub` first:
@@ -205,17 +205,17 @@ If you only want to download a certain directory to save time and space from clo
205
  from huggingface_hub import snapshot_download
206
 
207
  # If you only want to download the source audio or the subtitles, change the `wav/*` below into `srt/*` or `webm/*`
208
- snapshot_download(repo_id="CanCLID/zoengjyutgaai_saamgwokjinji",allow_patterns="opus/*",local_dir="./",repo_type="dataset")
209
  ```
210
 
211
  If you don't want to run python codes and want to do this via command lines, you can selectively clone only a directory of the repo:
212
 
213
  ```bash
214
- mkdir zoengjyutgaai_saamgwokjinji
215
- cd zoengjyutgaai_saamgwokjinji
216
  git init
217
 
218
- git remote add origin https://huggingface.co/datasets/CanCLID/zoengjyutgaai_saamgwokjinji
219
  git sparse-checkout init --cone
220
 
221
  # Tell git which directory you want
 
1
  ---
2
  language:
3
+ - yue
4
  license: cc0-1.0
5
  size_categories:
6
+ - 10K<n<100K
7
  task_categories:
8
+ - automatic-speech-recognition
9
+ - text-to-speech
10
+ - text-generation
11
+ - feature-extraction
12
+ - audio-to-audio
13
+ - audio-classification
14
+ - text-to-audio
15
  pretty_name: c
16
  configs:
17
+ - config_name: default
18
+ data_files:
19
+ - split: saamgwokjinji
20
+ path: data/saamgwokjinji-*
21
+ - split: seoiwuzyun
22
+ path: data/seoiwuzyun-*
23
  tags:
24
+ - cantonese
25
+ - audio
26
+ - art
27
  dataset_info:
28
  features:
29
+ - name: audio
30
+ dtype: audio
31
+ - name: id
32
+ dtype: string
33
+ - name: episode_id
34
+ dtype: int64
35
+ - name: audio_duration
36
+ dtype: float64
37
+ - name: transcription
38
+ dtype: string
39
  splits:
40
+ - name: saamgwokjinji
41
+ num_bytes: 2398591354.589
42
+ num_examples: 39173
43
+ - name: seoiwuzyun
44
+ num_bytes: 1629539808.0
45
+ num_examples: 24744
46
  download_size: 4046904982
47
  dataset_size: 4028131162.589
48
  ---
 
85
  ```python
86
  from datasets import load_dataset
87
 
88
+ ds = load_dataset("CanCLID/zoengjyutgaai")
89
  ```
90
 
91
  如果想單純將 `opus/` 入面所有嘢下載落嚟,可以跑下面嘅 Python 代碼,注意要安裝 `pip install --upgrade huggingface_hub` 先:
 
94
  from huggingface_hub import snapshot_download
95
 
96
  # 如果你淨係想下載啲字幕或者源音頻,噉就將下面嘅 `wav/*` 改成 `srt/*` 或者 `webm/*`
97
+ snapshot_download(repo_id="CanCLID/zoengjyutgaai",allow_patterns="opus/*",local_dir="./",repo_type="dataset")
98
  ```
99
 
100
  如果唔想用 python,你亦都可以用命令行叫 git 針對克隆個`opus/`或者其他路經,避免將成個 repo 都克隆落嚟浪費空間同下載時間:
101
 
102
  ```bash
103
+ mkdir zoengjyutgaai
104
+ cd zoengjyutgaai
105
  git init
106
 
107
+ git remote add origin https://huggingface.co/datasets/CanCLID/zoengjyutgaai
108
  git sparse-checkout init --cone
109
 
110
  # 指定凈係下載個別路徑
 
140
  # 準備好個 token 嚟登入
141
  login()
142
  # 推上 HuggingFace datasets
143
+ dataset.push_to_hub("CanCLID/zoengjyutgaai")
144
  ```
145
 
146
  ### 音頻格式轉換
 
196
  ```python
197
  from datasets import load_dataset
198
 
199
+ ds = load_dataset("CanCLID/zoengjyutgaai")
200
  ```
201
 
202
  If you only want to download a certain directory to save time and space from cloning the entire repo, run the Python codes below. Make sure you have `pip install --upgrade huggingface_hub` first:
 
205
  from huggingface_hub import snapshot_download
206
 
207
  # If you only want to download the source audio or the subtitles, change the `wav/*` below into `srt/*` or `webm/*`
208
+ snapshot_download(repo_id="CanCLID/zoengjyutgaai",allow_patterns="opus/*",local_dir="./",repo_type="dataset")
209
  ```
210
 
211
  If you don't want to run python codes and want to do this via command lines, you can selectively clone only a directory of the repo:
212
 
213
  ```bash
214
+ mkdir zoengjyutgaai
215
+ cd zoengjyutgaai
216
  git init
217
 
218
+ git remote add origin https://huggingface.co/datasets/CanCLID/zoengjyutgaai
219
  git sparse-checkout init --cone
220
 
221
  # Tell git which directory you want