init
Browse files- main_s2s.sh +35 -36
- main_s2t.sh +8 -16
main_s2s.sh
CHANGED
@@ -19,13 +19,41 @@ do
|
|
19 |
python fetch_dataset_s2s.py
|
20 |
done
|
21 |
# tokenize
|
22 |
-
for i in $(seq
|
23 |
do
|
24 |
export DATASET_ID=${i}
|
25 |
export DIRECTION="enA-jaA"
|
26 |
python tokenize_dataset_s2s.py
|
27 |
done
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
####################
|
30 |
# enA-viA: 740_598 #
|
31 |
####################
|
@@ -63,6 +91,12 @@ do
|
|
63 |
export DIRECTION="enA-viA"
|
64 |
python tokenize_dataset_s2s.py
|
65 |
done
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
|
68 |
####################
|
@@ -96,41 +130,6 @@ do
|
|
96 |
python fetch_dataset_s2s.py
|
97 |
done
|
98 |
|
99 |
-
####################
|
100 |
-
# enA-hiA: 454_942 #
|
101 |
-
####################
|
102 |
-
# test
|
103 |
-
export DATASET_ID=test
|
104 |
-
export DIRECTION="enA-hiA"
|
105 |
-
export LINE_NO_START=0
|
106 |
-
export LINE_NO_END=10
|
107 |
-
python fetch_dataset_s2s.py
|
108 |
-
# main
|
109 |
-
for i in $(seq 1 91);
|
110 |
-
do
|
111 |
-
export N_POOL=15
|
112 |
-
export DATASET_ID=${i}
|
113 |
-
export DIRECTION="enA-hiA"
|
114 |
-
export LINE_NO_START=$(((DATASET_ID-1) * 2500))
|
115 |
-
export LINE_NO_END=$((DATASET_ID * 2500))
|
116 |
-
echo ${LINE_NO_START}
|
117 |
-
python fetch_dataset_s2s.py
|
118 |
-
done
|
119 |
-
# tokenize
|
120 |
-
for i in $(seq 21 50);
|
121 |
-
do
|
122 |
-
export DATASET_ID=${i}
|
123 |
-
export DIRECTION="enA-hiA"
|
124 |
-
python tokenize_dataset_s2s.py
|
125 |
-
done
|
126 |
-
|
127 |
-
for i in $(seq 71 91);
|
128 |
-
do
|
129 |
-
export DATASET_ID=${i}
|
130 |
-
export DIRECTION="enA-hiA"
|
131 |
-
python tokenize_dataset_s2s.py
|
132 |
-
done
|
133 |
-
|
134 |
######################
|
135 |
# enA-zhA: 1_289_192 #
|
136 |
######################
|
|
|
19 |
python fetch_dataset_s2s.py
|
20 |
done
|
21 |
# tokenize
|
22 |
+
for i in $(seq 1 144);
|
23 |
do
|
24 |
export DATASET_ID=${i}
|
25 |
export DIRECTION="enA-jaA"
|
26 |
python tokenize_dataset_s2s.py
|
27 |
done
|
28 |
|
29 |
+
####################
|
30 |
+
# enA-hiA: 454_942 #
|
31 |
+
####################
|
32 |
+
# test
|
33 |
+
export DATASET_ID=test
|
34 |
+
export DIRECTION="enA-hiA"
|
35 |
+
export LINE_NO_START=0
|
36 |
+
export LINE_NO_END=10
|
37 |
+
python fetch_dataset_s2s.py
|
38 |
+
# main
|
39 |
+
for i in $(seq 1 91);
|
40 |
+
do
|
41 |
+
export N_POOL=15
|
42 |
+
export DATASET_ID=${i}
|
43 |
+
export DIRECTION="enA-hiA"
|
44 |
+
export LINE_NO_START=$(((DATASET_ID-1) * 2500))
|
45 |
+
export LINE_NO_END=$((DATASET_ID * 2500))
|
46 |
+
echo ${LINE_NO_START}
|
47 |
+
python fetch_dataset_s2s.py
|
48 |
+
done
|
49 |
+
# tokenize
|
50 |
+
for i in $(seq 1 91);
|
51 |
+
do
|
52 |
+
export DATASET_ID=${i}
|
53 |
+
export DIRECTION="enA-hiA"
|
54 |
+
python tokenize_dataset_s2s.py
|
55 |
+
done
|
56 |
+
|
57 |
####################
|
58 |
# enA-viA: 740_598 #
|
59 |
####################
|
|
|
91 |
export DIRECTION="enA-viA"
|
92 |
python tokenize_dataset_s2s.py
|
93 |
done
|
94 |
+
for i in 114 77 78 79 80;
|
95 |
+
do
|
96 |
+
export DATASET_ID=${i}
|
97 |
+
export DIRECTION="enA-viA"
|
98 |
+
python tokenize_dataset_s2s.py
|
99 |
+
done
|
100 |
|
101 |
|
102 |
####################
|
|
|
130 |
python fetch_dataset_s2s.py
|
131 |
done
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
######################
|
134 |
# enA-zhA: 1_289_192 #
|
135 |
######################
|
main_s2t.sh
CHANGED
@@ -24,13 +24,16 @@ cd ../../
|
|
24 |
######################
|
25 |
# enA-jpn: 1_468_292 #
|
26 |
######################
|
27 |
-
#
|
28 |
-
export DATASET_ID=test
|
29 |
export DIRECTION_SPEECH="enA"
|
30 |
export DIRECTION_TEXT="jpn"
|
31 |
-
export
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
34 |
# audio
|
35 |
for i in $(seq 1 60);
|
36 |
do
|
@@ -43,17 +46,6 @@ do
|
|
43 |
echo ${LINE_NO_START}
|
44 |
python fetch_dataset_s2t.py
|
45 |
done
|
46 |
-
# text
|
47 |
-
export DIRECTION_SPEECH="enA"
|
48 |
-
export DIRECTION_TEXT="jpn"
|
49 |
-
export CHUNK_SIZE=20
|
50 |
-
python download_s2t_metadata.py
|
51 |
-
for i in $(seq 1 ${CHUNK_SIZE});
|
52 |
-
do
|
53 |
-
cat seamless.dataset.metadata.public.${DIRECTION_SPEECH}-${DIRECTION_TEXT}.withduration.reordered.batch_${i}.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee metadata.${DIRECTION_SPEECH}-${DIRECTION_TEXT}.batch_${i}.tsv &
|
54 |
-
done
|
55 |
-
python format_text.py
|
56 |
-
|
57 |
########
|
58 |
# NLLB #
|
59 |
########
|
|
|
24 |
######################
|
25 |
# enA-jpn: 1_468_292 #
|
26 |
######################
|
27 |
+
# text
|
|
|
28 |
export DIRECTION_SPEECH="enA"
|
29 |
export DIRECTION_TEXT="jpn"
|
30 |
+
export CHUNK_SIZE=20
|
31 |
+
python download_s2t_metadata.py
|
32 |
+
for i in $(seq 1 ${CHUNK_SIZE});
|
33 |
+
do
|
34 |
+
cat seamless.dataset.metadata.public.${DIRECTION_SPEECH}-${DIRECTION_TEXT}.withduration.reordered.batch_${i}.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee metadata.${DIRECTION_SPEECH}-${DIRECTION_TEXT}.batch_${i}.tsv &
|
35 |
+
done
|
36 |
+
python format_text.py
|
37 |
# audio
|
38 |
for i in $(seq 1 60);
|
39 |
do
|
|
|
46 |
echo ${LINE_NO_START}
|
47 |
python fetch_dataset_s2t.py
|
48 |
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
########
|
50 |
# NLLB #
|
51 |
########
|