Update prepare.sh

This commit is contained in:
zr_jin 2024-10-09 14:08:04 +08:00
parent 5c04c31292
commit 60eb8bb366

View File

@ -339,7 +339,7 @@ if [ $stage -le 9 ] && [ $stop_stage -ge 9 ]; then
# 2. chmod +x ./jq # 2. chmod +x ./jq
# 3. cp jq /usr/bin # 3. cp jq /usr/bin
gunzip -c ${file} \ gunzip -c ${file} \
| jq '.text' | sed 's/"//g' > $lang_dir/transcript_words.txt | jq '.supervisions[].text' | sed 's/"//g' > $lang_dir/transcript_words.txt
# Ensure space only appears once # Ensure space only appears once
sed -i 's/\t/ /g' $lang_dir/transcript_words.txt sed -i 's/\t/ /g' $lang_dir/transcript_words.txt