init
Browse files- main.sh +8 -0
- push_s2t_translation.py +1 -1
main.sh
CHANGED
@@ -135,6 +135,14 @@ python format_text.py
|
|
135 |
mv text.enA-jpn.json ../
|
136 |
cd ../
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
########
|
139 |
# NLLB #
|
140 |
########
|
|
|
135 |
mv text.enA-jpn.json ../
|
136 |
cd ../
|
137 |
|
138 |
+
export DIRECTION="enA-jpn"
|
139 |
+
|
140 |
+
export LINE_NO_START=0
|
141 |
+
export LINE_NO_END=100
|
142 |
+
export DATASET_ID="dummy"
|
143 |
+
python push_s2t_translation.py
|
144 |
+
|
145 |
+
|
146 |
########
|
147 |
# NLLB #
|
148 |
########
|
push_s2t_translation.py
CHANGED
@@ -21,7 +21,7 @@ os.makedirs(cache_dir_audio, exist_ok=True)
|
|
21 |
os.makedirs(cache_dir_feature, exist_ok=True)
|
22 |
line_no_start = int(os.getenv("LINE_NO_START", 0))
|
23 |
line_no_end = int(os.getenv("LINE_NO_END", 10000))
|
24 |
-
dataset_id =
|
25 |
hf_org = "kotoba-tech"
|
26 |
hf_dataset = f"seamless-align-{direction}"
|
27 |
|
|
|
21 |
os.makedirs(cache_dir_feature, exist_ok=True)
|
22 |
line_no_start = int(os.getenv("LINE_NO_START", 0))
|
23 |
line_no_end = int(os.getenv("LINE_NO_END", 10000))
|
24 |
+
dataset_id = os.getenv("DATASET_ID", 0)
|
25 |
hf_org = "kotoba-tech"
|
26 |
hf_dataset = f"seamless-align-{direction}"
|
27 |
|