init
Browse files- download_audio.py +32 -35
download_audio.py
CHANGED
@@ -1,40 +1,37 @@
|
|
1 |
"""
|
2 |
enA-jaA: 718_606
|
|
|
|
|
|
|
3 |
|
4 |
-
LINE_NO_START=
|
5 |
-
LINE_NO_END=
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
LINE_NO_START=
|
11 |
-
LINE_NO_END=
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
LINE_NO_START=
|
19 |
-
LINE_NO_END=
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
LINE_NO_START=
|
25 |
-
LINE_NO_END=
|
26 |
-
|
27 |
-
LINE_NO_START=
|
28 |
-
LINE_NO_END=
|
29 |
-
|
30 |
-
LINE_NO_START=
|
31 |
-
LINE_NO_END=
|
32 |
-
|
33 |
-
LINE_NO_START=160000
|
34 |
-
LINE_NO_END=180000
|
35 |
-
|
36 |
-
LINE_NO_START=180000
|
37 |
-
LINE_NO_END=200000
|
38 |
|
39 |
"""
|
40 |
import json
|
@@ -131,7 +128,7 @@ def get_audio(dataframe: pd.DataFrame):
|
|
131 |
|
132 |
def process_dataset():
|
133 |
df_metadata = get_metadata()
|
134 |
-
print(f"metadata: {len(df_metadata)}")
|
135 |
inputs = [g for line_no, g in df_metadata.groupby("line_no") if line_no_start <= line_no < line_no_end]
|
136 |
print(f"filtered unique lines: {len(inputs)}")
|
137 |
inputs = [g for g in inputs if len(g) == 2]
|
|
|
1 |
"""
|
2 |
enA-jaA: 718_606
|
3 |
+
# server 1
|
4 |
+
export LINE_NO_START=0
|
5 |
+
export LINE_NO_END=30000
|
6 |
|
7 |
+
export LINE_NO_START=30000
|
8 |
+
export LINE_NO_END=60000
|
9 |
+
|
10 |
+
export LINE_NO_START=60000
|
11 |
+
export LINE_NO_END=90000
|
12 |
+
|
13 |
+
export LINE_NO_START=90000
|
14 |
+
export LINE_NO_END=120000
|
15 |
+
|
16 |
+
export LINE_NO_START=120000
|
17 |
+
export LINE_NO_END=150000
|
18 |
+
|
19 |
+
|
20 |
+
# server 2
|
21 |
+
export LINE_NO_START=100000
|
22 |
+
export LINE_NO_END=120000
|
23 |
+
|
24 |
+
export LINE_NO_START=120000
|
25 |
+
export LINE_NO_END=140000
|
26 |
+
|
27 |
+
export LINE_NO_START=140000
|
28 |
+
export LINE_NO_END=160000
|
29 |
+
|
30 |
+
export LINE_NO_START=160000
|
31 |
+
export LINE_NO_END=180000
|
32 |
+
|
33 |
+
export LINE_NO_START=180000
|
34 |
+
export LINE_NO_END=200000
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
"""
|
37 |
import json
|
|
|
128 |
|
129 |
def process_dataset():
|
130 |
df_metadata = get_metadata()
|
131 |
+
print(f"metadata: {len(df_metadata)}, {line_no_start} --> {line_no_start}")
|
132 |
inputs = [g for line_no, g in df_metadata.groupby("line_no") if line_no_start <= line_no < line_no_end]
|
133 |
print(f"filtered unique lines: {len(inputs)}")
|
134 |
inputs = [g for g in inputs if len(g) == 2]
|