turnmaster commited on
Commit
93dc43e
·
verified ·
1 Parent(s): 13bda39

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +81 -1
README.md CHANGED
@@ -24,4 +24,84 @@ pip install huggingface_hub
24
  # Download dataset
25
  hf download turnmaster/TurnMaster --repo-type dataset --local-dir ./TurnMaster
26
 
27
- cd TurnMaster
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  # Download dataset
25
  hf download turnmaster/TurnMaster --repo-type dataset --local-dir ./TurnMaster
26
 
27
+ cd TurnMaster
28
+
29
+
30
+ # Installation
31
+
32
+ ```bash
33
+ pip install -r requirements.txt
34
+ ```
35
+
36
+
37
+ # Project structure
38
+
39
+ ```text
40
+ TurnMaster/
41
+ ├── audio/
42
+ ├── metadata/
43
+ ├── processing/
44
+ │ ├── process_dataset.py
45
+ │ ├── extract_shards.py
46
+ │ ├── utils.py
47
+ │ └── requirements.txt
48
+ └── README.md
49
+ ```
50
+
51
+
52
+ # Extract shards
53
+
54
+
55
+ ```bash
56
+ # Extract to custom directory
57
+ python extract_shards.py --sharded-dir ./TurnMaster --output-dir ./my_dataset
58
+ ```
59
+
60
+
61
+ ```bash
62
+ # Extract from cached download
63
+ python extract_shards.py --sharded-dir ~/.cache/huggingface/hub/datasets--turnmaster--TurnMaster/snapshots/main --output-dir my_dataset
64
+ ```
65
+
66
+ ### OPTIONAL: create a curated version of the dataset. You can also skip this step and reuse the standart curated version of TurnMaster
67
+
68
+ ```bash
69
+ # Extract from cached download
70
+ python extract_shards.py --sharded-dir ~/.cache/huggingface/hub/datasets--turnmaster--TurnMaster/snapshots/main --output-dir extracted
71
+ ```
72
+
73
+ The dataset is now ready to be build with the custom augmentations.
74
+ # Build dataset
75
+
76
+ ### Base (no silence)
77
+ ```bash
78
+ python dataset_creation/augment_taskmaster.py \
79
+ --aug-dataset-save-dir YOUR/SAVE/DIR \
80
+ --taskmaster-root-dir DIR/TO/EXTRACTED/DATASET \
81
+ --silence-max-start 0.0 \
82
+ --silence-min-end 0.2 \
83
+ --silence-max-end 2.0 \
84
+ --normalize-text \
85
+ --custom-dollar-normalisation \
86
+ --keep-punct \
87
+ --lam 0.0 \
88
+ ```
89
+
90
+ ### Base silence insertion
91
+ ```bash
92
+ python dataset_creation/augment_taskmaster.py \
93
+ --aug-dataset-save-dir YOUR/SAVE/DIR \
94
+ --taskmaster-root-dir DIR/TO/EXTRACTED/DATASET \
95
+ --silence-max-start 0.0 \
96
+ --silence-min-end 0.2 \
97
+ --silence-max-end 2.0 \
98
+ --normalize-text \
99
+ --custom-dollar-normalisation \
100
+ --keep-punct \
101
+ --silence-insertion \
102
+ --lam 0.0 \
103
+ --max-initial-silence-duration 1.5 \
104
+ --silence-insertion-max-s 2.0 \
105
+ --pause-per-second-ratio 1000.0
106
+ ```
107
+