asahi417 commited on
Commit
c291397
·
1 Parent(s): 6697bc7
Files changed (1) hide show
  1. download_audio.py +32 -35
download_audio.py CHANGED
@@ -1,40 +1,37 @@
1
  """
2
  enA-jaA: 718_606
 
 
 
3
 
4
- LINE_NO_START=10000
5
- LINE_NO_END=20000
6
- LINE_NO_START=20000
7
- LINE_NO_END=30000
8
- LINE_NO_START=30000
9
- LINE_NO_END=40000
10
- LINE_NO_START=40000
11
- LINE_NO_END=50000
12
- LINE_NO_START=50000
13
- LINE_NO_END=60000
14
- LINE_NO_START=60000
15
- LINE_NO_END=70000
16
- LINE_NO_START=70000
17
- LINE_NO_END=80000
18
- LINE_NO_START=80000
19
- LINE_NO_END=90000
20
- LINE_NO_START=90000
21
- LINE_NO_END=100000
22
-
23
-
24
- LINE_NO_START=100000
25
- LINE_NO_END=120000
26
-
27
- LINE_NO_START=120000
28
- LINE_NO_END=140000
29
-
30
- LINE_NO_START=140000
31
- LINE_NO_END=160000
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]