mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update data filtering recipe
This commit is contained in:
parent
fc8e04ba65
commit
a8e92e4fb4
@ -299,7 +299,7 @@ def filter_wav_text(data_dir, dataset):
|
||||
wav_dict = {}
|
||||
for line in wav_lines:
|
||||
parts = line.strip().split()
|
||||
if len(parts) < 2:
|
||||
if len(parts) != 2:
|
||||
continue
|
||||
sample_name, wav_path = parts
|
||||
wav_dict[sample_name] = wav_path
|
||||
|
||||
Loading…
Reference in New Issue
Block a user