Skip to content

Commit

Permalink
comment out remove empty text in stage3 which causes wav.scp filter d…
Browse files Browse the repository at this point in the history
…oesn't work
  • Loading branch information
tony-sensei committed Apr 16, 2024
1 parent 9c476a9 commit faf0426
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions egs2/TEMPLATE/s2st1/s2st.sh
Original file line number Diff line number Diff line change
Expand Up @@ -726,11 +726,11 @@ if ! "${skip_data_prep}"; then
exit 2
fi

# Remove empty text
for utt_extra_file in ${utt_extra_files}; do
<${data_feats}/org/${dset}/${utt_extra_file} \
awk ' { if( NF != 1 ) print $0; } ' > ${data_feats}/${dset}/${utt_extra_file}
done
# # Remove empty text
# for utt_extra_file in ${utt_extra_files}; do
# <${data_feats}/org/${dset}/${utt_extra_file} \
# awk ' { if( NF != 1 ) print $0; } ' > ${data_feats}/${dset}/${utt_extra_file}
# done

# fix_data_dir.sh leaves only utts which exist in all files
# Need to filter twice to get the intersection
Expand Down

0 comments on commit faf0426

Please sign in to comment.