asahi417 commited on
Commit
81a79fe
1 Parent(s): 1125f7c
Files changed (1) hide show
  1. download_audio.py +3 -1
download_audio.py CHANGED
@@ -98,7 +98,9 @@ def process_dataset():
98
  print(f"metadata: {len(df_metadata)}, {line_no_start} --> {line_no_end}")
99
  inputs = [
100
  g for line_no, g in df_metadata.groupby("line_no")
101
- if line_no_start <= line_no < line_no_end and not os.path.exists(p_join(cache_dir_feature, f'{line_no}.json'))
 
 
102
  ]
103
  print(f"filtered unique lines: {len(inputs)}")
104
  if direction == "enA-jaA":
 
98
  print(f"metadata: {len(df_metadata)}, {line_no_start} --> {line_no_end}")
99
  inputs = [
100
  g for line_no, g in df_metadata.groupby("line_no")
101
+ if line_no_start <= line_no < line_no_end and not os.path.exists(
102
+ p_join(cache_dir_feature, f'{int(line_no)}.json')
103
+ )
104
  ]
105
  print(f"filtered unique lines: {len(inputs)}")
106
  if direction == "enA-jaA":