Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] remove unused spaces in text #14

Merged
merged 1 commit into from
Dec 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions examples/aishell/s0/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ train_config=conf/train_conformer.yaml
checkpoint=
cmvn=true
dir=exp/sp_spec_aug

# use average_checkpoint will get better result
average_checkpoint=true
decode_checkpoint=$dir/final.pt
average_num=5
average_num=10
robin1001 marked this conversation as resolved.
Show resolved Hide resolved

. utils/parse_options.sh || exit 1;

Expand All @@ -47,6 +46,14 @@ if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
utils/perturb_data_dir_speed.sh 0.9 data/train data/train_sp0.9
utils/perturb_data_dir_speed.sh 1.1 data/train data/train_sp1.1
utils/combine_data.sh data/train_sp data/train data/train_sp0.9 data/train_sp1.1
# Remove the space in Mandarin text
for x in train_sp dev test; do
robin1001 marked this conversation as resolved.
Show resolved Hide resolved
cp data/${x}/text data/${x}/text.org
paste -d " " <(cut -f 1 -d" " data/${x}/text.org) <(cut -f 2- -d" " data/${x}/text.org | tr -d " ") \
> data/${x}/text
rm data/${x}/text.org
done

fi

if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
Expand Down