Browse Source

update data filtering recipe

haoneng.lhn 2 năm trước cách đây
mục cha
commit
a8e92e4fb4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      funasr/utils/wav_utils.py

+ 1 - 1
funasr/utils/wav_utils.py

@@ -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